diff --git a/src/components/CodeEditor.tsx b/src/components/CodeEditor.tsx index f9df2562..9063587f 100644 --- a/src/components/CodeEditor.tsx +++ b/src/components/CodeEditor.tsx @@ -205,8 +205,7 @@ ${code} cursor: "pointer", }, }), - EditorView.decorations.of((view) => { - if (!metaKeyDown) return Decoration.set([]) + EditorView.decorations.of((view: any) => { const decorations = [] for (let { from, to } of view.visibleRanges) { for (let pos = from; pos < to; ) { diff --git a/src/pages/dashboard.tsx b/src/pages/dashboard.tsx index 4f42413d..c8482608 100644 --- a/src/pages/dashboard.tsx +++ b/src/pages/dashboard.tsx @@ -105,7 +105,7 @@ export const DashboardPage = () => { )} {mySnippets && mySnippets.length > 10 && ( View all snippets diff --git a/src/pages/user-profile.tsx b/src/pages/user-profile.tsx index 288ad3c0..c2bfd914 100644 --- a/src/pages/user-profile.tsx +++ b/src/pages/user-profile.tsx @@ -23,8 +23,10 @@ export const UserProfilePage = () => { }, ) - const filteredSnippets = userSnippets?.filter((snippet) => - snippet.unscoped_name.toLowerCase().includes(searchQuery.toLowerCase()), + const filteredSnippets = userSnippets?.filter( + (snippet) => + !searchQuery || + snippet.unscoped_name.toLowerCase().includes(searchQuery.toLowerCase()), ) return (