Is this sentence grammatically correct?

Elle a jeté un des cadeaux par accident.

Almost. See the correction below.

Elle a jeté l'un des cadeaux par accident