Skip to content

Commit 5578ef5

Browse files
committed
Handle null suggestions in AI Suggestions dialog by passing empty array to renderSuggestionTree
1 parent 311ef76 commit 5578ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/editor/nodes/dialogs/ai-suggestions-dialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function AiSuggestionsDialog({
8888
</Typography>
8989
{hasSuggestions ? (
9090
<Box sx={{ display: "flex", flexDirection: "column", gap: 1 }}>
91-
{renderSuggestionTree(suggestions)}
91+
{renderSuggestionTree(suggestions ?? [])}
9292
</Box>
9393
) : (
9494
<Typography color="text.secondary" variant="body2">

0 commit comments

Comments
 (0)