Skip to content

Commit d21c04f

Browse files
committed
format
1 parent 6ea0526 commit d21c04f

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

apps/roam/src/components/canvas/Clipboard.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -993,15 +993,13 @@ const ClipboardPageSection = ({
993993
</div>
994994
) : visibleGroupedNodes.length === 0 ? (
995995
<div className="rounded border border-dashed border-gray-200 p-2">
996-
997996
{searchQuery || selectedNodeType !== "All"
998997
? showNodesOnCanvas
999998
? "No nodes match the current filters."
1000-
: "No nodes match the current filters, or matching nodes are already on canvas. Turn on \"Show nodes on canvas\" to view them."
999+
: 'No nodes match the current filters, or matching nodes are already on canvas. Turn on "Show nodes on canvas" to view them.'
10011000
: showNodesOnCanvas
1002-
? "All nodes from this page are already on canvas."
1003-
: 'All nodes from this page are already on canvas. Turn on "Show nodes on canvas" to view them.'}
1004-
1001+
? "All nodes from this page are already on canvas."
1002+
: 'All nodes from this page are already on canvas. Turn on "Show nodes on canvas" to view them.'}
10051003
</div>
10061004
) : (
10071005
<div className="space-y-1">
@@ -1168,7 +1166,10 @@ export const ClipboardPanel = () => {
11681166
}, [nodeTypesByPage, pages]);
11691167

11701168
useEffect(() => {
1171-
if (selectedNodeType !== "All" && !availableNodeTypes.includes(selectedNodeType)) {
1169+
if (
1170+
selectedNodeType !== "All" &&
1171+
!availableNodeTypes.includes(selectedNodeType)
1172+
) {
11721173
setSelectedNodeType("All");
11731174
}
11741175
}, [availableNodeTypes, selectedNodeType]);

0 commit comments

Comments
 (0)