The correct revision of the sentence that uses commas accurately is:
- Erika helped the elderly woman with her shopping basket, which was overflowing with vegetables.
This version correctly places a comma before "which" to indicate that the clause is non-restrictive, providing additional information about the shopping basket.