Skip to content

Commit

Permalink
Fix the reactivity of the run buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Feb 22, 2024
1 parent 6567eaf commit 017f2ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/main/trace-frame/script-editor/source.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ref, computed, watch, watchEffect } from "vue";
import { ref, computed, watchEffect } from "vue";

import {
useSourceQuery,
Expand All @@ -20,8 +20,8 @@ export async function useSource() {
const modified = computed(() => source.value !== savedSource.value);

const store = useStore();
watch(modified, (val) => {
store.setModified(val);
watchEffect(() => {
store.setModified(modified.value);
});

const { executeMutation: executeMutationReset } = useResetMutation();
Expand Down

0 comments on commit 017f2ac

Please sign in to comment.