Skip to content

Commit ee263e7

Browse files
authored
Merge pull request #82 from lizlooney/pr_dont_ask_save_twice
Fixes "Blocks have been modified" dialog appears twice bug
2 parents bf988cd + 077fb8d commit ee263e7

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)