Skip to content

Commit c01a73c

Browse files
authored
Merge pull request #299 from XpressAI/paul/await-all
Await both context.ready and content.renderPromise before saving
2 parents 0eacfbc + 32b5244 commit c01a73c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ const xircuits: JupyterFrontEndPlugin<void> = {
175175
factory: FACTORY
176176
}
177177
);
178-
await newWidget.content.renderPromise;
178+
await Promise.all([newWidget.context.ready, newWidget.content.renderPromise]);
179179
await app.commands.execute(commandIDs.saveXircuit, {
180180
path: model.path
181181
});

0 commit comments

Comments
 (0)