Skip to content

Commit

Permalink
fix fallback name
Browse files Browse the repository at this point in the history
  • Loading branch information
macjuul committed Dec 24, 2024
1 parent 349c11f commit 4c23b4d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/screens/surrealist/views/query/QueryPane/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -208,7 +208,7 @@ export function QueryPane({

return (
<ContentPane
title={activeTab.name ?? "Query"}
title={activeTab.name || "Query"}
icon={iconServer}
radius={corners}
leftSection={
Expand Down Expand Up @@ -260,7 +260,6 @@ export function QueryPane({
</HoverCard>
)}


<ActionButton
variant="light"
label="Save query"
Expand Down

0 comments on commit 4c23b4d

Please sign in to comment.