diff --git a/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx b/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx index fe812f554c..bd52b4fc91 100644 --- a/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx +++ b/app/client/src/components/editorComponents/CodeEditor/generateQuickCommands.tsx @@ -14,7 +14,6 @@ import { ReactComponent as NewPlus } from "assets/icons/menu/new-plus.svg"; import { ReactComponent as Binding } from "assets/icons/menu/binding.svg"; import { ReactComponent as Snippet } from "assets/icons/ads/snippet.svg"; import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory"; -import getFeatureFlags from "utils/featureFlags"; enum Shortcuts { PLUS = "PLUS", @@ -221,10 +220,7 @@ export const generateQuickCommands = ( recentEntities, 5, ); - const actionCommands = [newBinding]; - if (getFeatureFlags().SNIPPET) { - actionCommands.push(insertSnippet); - } + const actionCommands = [newBinding, insertSnippet]; suggestionsMatchingSearchText.push( ...matchingCommands(actionCommands, searchText, []), diff --git a/app/client/src/components/editorComponents/GlobalSearch/utils.tsx b/app/client/src/components/editorComponents/GlobalSearch/utils.tsx index 7abfa2a012..4cdb1e2c39 100644 --- a/app/client/src/components/editorComponents/GlobalSearch/utils.tsx +++ b/app/client/src/components/editorComponents/GlobalSearch/utils.tsx @@ -10,7 +10,6 @@ import { Datasource } from "entities/Datasource"; import { useEffect, useState } from "react"; import { fetchRawGithubContentList } from "./githubHelper"; import { PluginType } from "entities/Action"; -import getFeatureFlags from "utils/featureFlags"; import { modText } from "./HelpBar"; import { WidgetType } from "constants/WidgetConstants"; import { ENTITY_TYPE } from "entities/DataTree/dataTreeFactory"; @@ -134,7 +133,6 @@ export const filterCategories: Record = { kind: SEARCH_ITEM_TYPES.category, id: SEARCH_CATEGORY_ID.SNIPPETS, desc: createMessage(SNIPPET_DESCRIPTION), - show: () => getFeatureFlags().SNIPPET, }, [SEARCH_CATEGORY_ID.DOCUMENTATION]: { title: "Search Documentation",