Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
bfd066cc
"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "20e4f6cc164564254d0db08eb11248fc2644c25d"
Commit
bfd066cc
authored
Apr 03, 2024
by
Timothy J. Baek
Browse files
fix: share chat modal
parent
000bea84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/lib/components/chat/ShareChatModal.svelte
src/lib/components/chat/ShareChatModal.svelte
+10
-6
No files found.
src/lib/components/chat/ShareChatModal.svelte
View file @
bfd066cc
...
@@ -54,12 +54,16 @@
...
@@ -54,12 +54,16 @@
export let show = false;
export let show = false;
onMount(async () => {
$: if (show) {
chatId.subscribe(async (value) => {
(async () => {
chat = await getChatById(localStorage.token, value);
if ($chatId) {
console.log(chat);
chat = await getChatById(localStorage.token, $chatId);
});
} else {
});
chat = null;
console.log(chat);
}
})();
}
</script>
</script>
<Modal bind:show size="sm">
<Modal bind:show size="sm">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment