Skip to content

Commit 5c9164e

Browse files
committed
format
1 parent 0b21b8b commit 5c9164e

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
@@ -992,15 +992,13 @@ const ClipboardPageSection = ({
992992
</div>
993993
) : visibleGroupedNodes.length === 0 ? (
994994
<div className="rounded border border-dashed border-gray-200 p-2">
995-
996995
{searchQuery || selectedNodeType !== "All"
997996
? showNodesOnCanvas
998997
? "No nodes match the current filters."
999-
: "No nodes match the current filters, or matching nodes are already on canvas. Turn on \"Show nodes on canvas\" to view them."
998+
: 'No nodes match the current filters, or matching nodes are already on canvas. Turn on "Show nodes on canvas" to view them.'
1000999
: showNodesOnCanvas
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.'}
1003-
1000+
? "All nodes from this page are already on canvas."
1001+
: 'All nodes from this page are already on canvas. Turn on "Show nodes on canvas" to view them.'}
10041002
</div>
10051003
) : (
10061004
<div className="space-y-1">
@@ -1167,7 +1165,10 @@ export const ClipboardPanel = () => {
11671165
}, [nodeTypesByPage, pages]);
11681166

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

0 commit comments

Comments
 (0)