fix: run block initialize fn only once (#740)

This commit is contained in:
Jeremy 2025-01-29 20:26:58 +05:30 committed by GitHub
parent 5bb62f1b14
commit 93b02a85e1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -4,5 +4,5 @@ import { getSuggestionsByDocumentId } from '@/lib/db/queries';
export async function getSuggestions({ documentId }: { documentId: string }) {
const suggestions = await getSuggestionsByDocumentId({ documentId });
return suggestions;
return suggestions ?? [];
}