Skip to content

Commit

Permalink
fix(renderer-app): close cloud storage panel fail after insert file (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheerego7 committed Dec 9, 2021
1 parent a2ed313 commit 7b159ce
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ export const CloudStoragePanel = observer<CloudStoragePanelProps>(function Cloud
cloudStorage,
onCoursewareInserted,
}) {
useEffect(() => cloudStorage.initialize(), [cloudStorage, onCoursewareInserted]);
useEffect(
() => cloudStorage.initialize({ onCoursewareInserted }),
[cloudStorage, onCoursewareInserted],
);

return <CloudStorageContainer store={cloudStorage} />;
});

0 comments on commit 7b159ce

Please sign in to comment.