Skip to content

Commit 517923e

Browse files
abhizipstackclaude
andauthored
fix: remove loader reset from finally block in set-model handler (#47)
The .finally() block was resetting setIsLoading(false) after both success and error paths. On success, this interfered with the loading state needed by runTransformation. The catch block already handles the error path loader reset. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ff198d8 commit 517923e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

frontend/src/ide/editor/no-code-model/no-code-model.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,6 @@ function NoCodeModel({ nodeData }) {
746746
notify({ error });
747747
setIsLoading(false);
748748
handleModalClose();
749-
})
750-
.finally(() => {
751-
setIsLoading(false);
752749
});
753750
};
754751

0 commit comments

Comments
 (0)