Skip to content

Commit

Permalink
fixes bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Oct 3, 2024
1 parent ca66a37 commit a390499
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/composable/eventStreams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ function useLogStream(url: Ref<string>, loadMoreUrl?: Ref<string>) {

onScopeDispose(() => close());

watch(messages, () => (hasComplexLogs.value = messages.value.some((m) => m instanceof ComplexLogEntry)));
watch(messages, () => {
if (messages.value.length > 1) {
hasComplexLogs.value = messages.value.some((m) => m instanceof ComplexLogEntry);
}
});

return { messages, loadOlderLogs, isLoadingMore, hasComplexLogs };
}

0 comments on commit a390499

Please sign in to comment.