fix(sql_console): not refreshing when switching between notes

This commit is contained in:
Elian Doran 2026-01-18 12:09:01 +02:00
parent 711828d6b4
commit 8182a04eae
No known key found for this signature in database

View File

@ -22,7 +22,7 @@ export default function SqlConsole(props: TypeWidgetProps) {
noteType="code"
{...props}
editorBefore={<SqlTableSchemas {...props} />}
previewContent={<SqlResults {...props} />}
previewContent={<SqlResults key={props.note.noteId} {...props} />}
splitOptions={{
sizes: [ 70, 30 ]
}}