"test/git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "64956d54b2b2be9681da01fe214277a0eef05be2"
Commit 68aca768 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix

parent 2f501aee
...@@ -17,9 +17,13 @@ ...@@ -17,9 +17,13 @@
let content = ''; let content = '';
$: if (show) { $: if (show) {
content = memory.content; setContent();
} }
const setContent = () => {
content = memory.content;
};
const submitHandler = async () => { const submitHandler = async () => {
loading = true; loading = true;
...@@ -32,6 +36,7 @@ ...@@ -32,6 +36,7 @@
if (res) { if (res) {
console.log(res); console.log(res);
toast.success('Memory updated successfully'); toast.success('Memory updated successfully');
dispatch('save');
show = false; show = false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment