Skip to content

Commit 077fb8d

Browse files
committed
Use await when calling saveBlocks.
1 parent bf988cd commit 077fb8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,9 +571,9 @@ const App: React.FC = () => {
571571
setPopconfirmTitle('Blocks have been modified!');
572572
setPopconfirmDescription('Press ok to save and continue');
573573
// Set the function to be executed if the user clicks 'ok'.
574-
afterPopconfirmOk.current = () => {
574+
afterPopconfirmOk.current = async () => {
575575
setPopconfirmLoading(true);
576-
const success = saveBlocks();
576+
const success = await saveBlocks();
577577
setOpenPopconfirm(false);
578578
setPopconfirmLoading(false);
579579
if (success) {

0 commit comments

Comments
 (0)