From 4c23b4dc5f4fc16449ad68747c25909c8fcc83bf Mon Sep 17 00:00:00 2001 From: Julian Mills Date: Tue, 24 Dec 2024 18:53:38 +0000 Subject: [PATCH] fix fallback name --- src/screens/surrealist/views/query/QueryPane/index.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/screens/surrealist/views/query/QueryPane/index.tsx b/src/screens/surrealist/views/query/QueryPane/index.tsx index 71d023db..bff148af 100644 --- a/src/screens/surrealist/views/query/QueryPane/index.tsx +++ b/src/screens/surrealist/views/query/QueryPane/index.tsx @@ -132,8 +132,8 @@ export function QueryPane({ const document = editor.state.doc; const formatted = hasSelection ? document.sliceString(0, selection.from) + - formatQuery(document.sliceString(selection.from, selection.to)) + - document.sliceString(selection.to) + formatQuery(document.sliceString(selection.from, selection.to)) + + document.sliceString(selection.to) : formatQuery(document.toString()); setEditorText(editor, formatted); @@ -208,7 +208,7 @@ export function QueryPane({ return ( )} -