We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdfd574 commit b439c15Copy full SHA for b439c15
1 file changed
packages/drivers/excel/src/index.ts
@@ -556,9 +556,12 @@ export class ExcelDriver extends MemoryDriver {
556
*/
557
async save(): Promise<void> {
558
if (this.fileStorageMode === 'single-file') {
559
- // Sync all objects to single file
+ // Sync all objects to single file (collect unique object names first)
560
+ const objectNames = new Set<string>();
561
for (const [key] of this.store.entries()) {
- const objectName = key.split(':')[0];
562
+ objectNames.add(key.split(':')[0]);
563
+ }
564
+ for (const objectName of objectNames) {
565
await this.syncToSingleFileWorkbook(objectName);
566
}
567
await this.saveWorkbook();
0 commit comments