Skip to content

Commit

Permalink
Fixed buggy build
Browse files Browse the repository at this point in the history
  • Loading branch information
elsoazemelet committed Feb 1, 2025
1 parent 2081eee commit 4875964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/renderer/main/panels/configuration/Configuration.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import { appSettings } from "../../../runtime/app-helper.store";
import { onDestroy } from "svelte";
import { runtime_manager } from "../../../runtime/runtime-manager.store";
import { isSyntaxError } from "./components/DynamicWrapper";
let runtime: GridRuntime;
let element: GridElement;
Expand Down Expand Up @@ -56,7 +55,6 @@
console.error("Failed to load event:", err);
});
}
isSyntaxError.set(false);
}
let containerWidth: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
replaceAction,
syncWithGrid,
} from "./../../../../runtime/operations";
import { isSyntaxError } from "./DynamicWrapper";
import { get } from "svelte/store";
const dispatch = createEventDispatcher();
Expand All @@ -28,6 +26,7 @@
let header: typeof SvelteComponent;
let component: typeof SvelteComponent;
let isSyntaxError = false;
let validationError = false;
let ctrlIsDown = false;
let toggled = false;
Expand Down Expand Up @@ -64,8 +63,8 @@
function handleUpdateAction(e) {
const { short, script, name } = e.detail;
const data = new ActionData(short, script, name);
isSyntaxError.set(!data.checkSyntax());
if (!get(isSyntaxError)) {
isSyntaxError = !data.checkSyntax();
if (!isSyntaxError) {
updateAction(action, data, false);
}
}
Expand Down

0 comments on commit 4875964

Please sign in to comment.