mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
fix reactivity issue
this broke somewhere down the line and needs a tick now
This commit is contained in:
parent
0c66df1dc3
commit
8d2fab7dea
1 changed files with 2 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
import Term from "./Term.svelte";
|
import Term from "./Term.svelte";
|
||||||
import AnkiWillStart from "./AnkiWillStart.svelte";
|
import AnkiWillStart from "./AnkiWillStart.svelte";
|
||||||
import type { Terminal } from "@xterm/xterm";
|
import type { Terminal } from "@xterm/xterm";
|
||||||
|
import { tick } from "svelte";
|
||||||
|
|
||||||
let {
|
let {
|
||||||
options,
|
options,
|
||||||
|
|
@ -52,7 +53,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
let error: Error | null = $state(null);
|
let error: Error | null = $state(null);
|
||||||
const setError = (e: Error) => {
|
const setError = (e: Error) => {
|
||||||
error = e;
|
tick().then(() => (error = e));
|
||||||
};
|
};
|
||||||
|
|
||||||
let term: Terminal | undefined = $state(undefined);
|
let term: Terminal | undefined = $state(undefined);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue