Skip to content

Commit 844530e

Browse files
authored
fix: set loading state after formatting finished (#238)
1 parent 05310bf commit 844530e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/src/store/dispatchers/snippets.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ export const formatFileDispatcher: Dispatcher =
103103
const { editor: {code}, runTarget: { backend } } = getState();
104104
const res = await client.formatCode(code, backend);
105105

106+
dispatch(newLoadingAction(false));
106107
if (res.formatted?.length) {
107108
dispatch(newFormatCodeAction(res.formatted));
108109
}

0 commit comments

Comments
 (0)