diff --git a/web/components/command-palette/command-modal.tsx b/web/components/command-palette/command-modal.tsx
index ddbf45dc8..aa36eabed 100644
--- a/web/components/command-palette/command-modal.tsx
+++ b/web/components/command-palette/command-modal.tsx
@@ -40,7 +40,7 @@ const issueService = new IssueService();
export const CommandModal: React.FC = observer(() => {
// hooks
- const { getProjectById } = useProject();
+ const { getProjectById, workspaceProjectIds } = useProject();
const { isMobile } = usePlatformOS();
// states
const [placeholder, setPlaceholder] = useState("Type a command or search...");
@@ -282,22 +282,24 @@ export const CommandModal: React.FC = observer(() => {
setSearchTerm={(newSearchTerm) => setSearchTerm(newSearchTerm)}
/>
)}
-
- {
- closePalette();
- setTrackElement("Command Palette");
- toggleCreateIssueModal(true);
- }}
- className="focus:bg-custom-background-80"
- >
-
-
- Create new issue
-
- C
-
-
+ {workspaceSlug && workspaceProjectIds && workspaceProjectIds.length > 0 && (
+
+ {
+ closePalette();
+ setTrackElement("Command Palette");
+ toggleCreateIssueModal(true);
+ }}
+ className="focus:bg-custom-background-80"
+ >
+
+
+ Create new issue
+
+ C
+
+
+ )}
{workspaceSlug && (