Spaces:
Running
Running
fix: remove legacy run in `ToolInputComponent.svelte`
Browse files
src/routes/tools/ToolInputComponent.svelte
CHANGED
@@ -1,6 +1,4 @@
|
|
1 |
<script lang="ts">
|
2 |
-
import { run } from "svelte/legacy";
|
3 |
-
|
4 |
interface Props {
|
5 |
type: string;
|
6 |
value: string | boolean | number;
|
@@ -26,7 +24,7 @@
|
|
26 |
previousValue = innerValue;
|
27 |
});
|
28 |
|
29 |
-
|
30 |
value = typeof innerValue === "string" ? innerValue : innerValue.toString();
|
31 |
});
|
32 |
</script>
|
|
|
1 |
<script lang="ts">
|
|
|
|
|
2 |
interface Props {
|
3 |
type: string;
|
4 |
value: string | boolean | number;
|
|
|
24 |
previousValue = innerValue;
|
25 |
});
|
26 |
|
27 |
+
$effect(() => {
|
28 |
value = typeof innerValue === "string" ? innerValue : innerValue.toString();
|
29 |
});
|
30 |
</script>
|