Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: fix snapshot command (#3376)
Wenzhao Hu0057290fc1f5
diff --git a/packages/debugger/src/commands/commands/unit.command.ts b/packages/debugger/src/commands/commands/unit.command.tsindex 45231d0b72..ab27564b42 100644--- a/packages/debugger/src/commands/commands/unit.command.ts+++ b/packages/debugger/src/commands/commands/unit.command.ts@@ -67,7 +67,7 @@ export const LoadSheetSnapshotCommand: ICommand = {handler: async (accessor) => {const fileOpenerService = accessor.get(IFileOpenerService);const snapshotFile = await fileOpenerService.openFile({ multiple: false, accept: '.json' });- if (snapshotFile.length === 1) return false;+ if (snapshotFile.length !== 1) return false;const text = await snapshotFile[0].text();const instanceService = accessor.get(IUniverInstanceService);