forked from open-webui/open-webui
fix: share chat modal
This commit is contained in:
parent
000bea84ae
commit
bfd066cc2f
1 changed files with 10 additions and 6 deletions
|
@ -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) {
|
||||||
|
chat = await getChatById(localStorage.token, $chatId);
|
||||||
|
} else {
|
||||||
|
chat = null;
|
||||||
console.log(chat);
|
console.log(chat);
|
||||||
});
|
}
|
||||||
});
|
})();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal bind:show size="sm">
|
<Modal bind:show size="sm">
|
||||||
|
|
Loading…
Reference in a new issue