mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 00:32:05 +00:00
fix: share chat modal
This commit is contained in:
parent
000bea84ae
commit
bfd066cc2f
@ -54,12 +54,16 @@
|
||||
|
||||
export let show = false;
|
||||
|
||||
onMount(async () => {
|
||||
chatId.subscribe(async (value) => {
|
||||
chat = await getChatById(localStorage.token, value);
|
||||
$: if (show) {
|
||||
(async () => {
|
||||
if ($chatId) {
|
||||
chat = await getChatById(localStorage.token, $chatId);
|
||||
} else {
|
||||
chat = null;
|
||||
console.log(chat);
|
||||
});
|
||||
});
|
||||
}
|
||||
})();
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal bind:show size="sm">
|
||||
|
Loading…
Reference in New Issue
Block a user