chore: format
This commit is contained in:
@@ -92,7 +92,10 @@
|
||||
const loadExcelContent = async () => {
|
||||
try {
|
||||
excelError = '';
|
||||
const [arrayBuffer, { read }] = await Promise.all([getFileContentById(item.id), import('xlsx')]);
|
||||
const [arrayBuffer, { read }] = await Promise.all([
|
||||
getFileContentById(item.id),
|
||||
import('xlsx')
|
||||
]);
|
||||
excelWorkbook = read(arrayBuffer, { type: 'array' });
|
||||
excelSheetNames = excelWorkbook.SheetNames;
|
||||
|
||||
|
||||
@@ -138,7 +138,10 @@ export class SocketIOCollaborationProvider {
|
||||
// The Yjs plugin will automatically sync the content
|
||||
} else {
|
||||
// JSON content - use the existing approach
|
||||
const editorYdoc = prosemirrorJSONToYDoc(this.editor.schema, this.initialContent);
|
||||
const editorYdoc = prosemirrorJSONToYDoc(
|
||||
this.editor.schema,
|
||||
this.initialContent
|
||||
);
|
||||
if (editorYdoc) {
|
||||
Y.applyUpdate(this.doc, Y.encodeStateAsUpdate(editorYdoc));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user