diff --git a/packages/app/src/components/quick-search/index.tsx b/packages/app/src/components/quick-search/index.tsx
index d10c1e42e4..8d0d134a74 100644
--- a/packages/app/src/components/quick-search/index.tsx
+++ b/packages/app/src/components/quick-search/index.tsx
@@ -13,6 +13,7 @@ import { Command } from 'cmdk';
import { useEffect, useState } from 'react';
import { useModal } from '@/providers/global-modal-provider';
import { getUaHelper } from '@/utils';
+import { useAppState } from '@/providers/app-state-provider/context';
type TransitionsModalProps = {
open: boolean;
onClose: () => void;
@@ -25,7 +26,12 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
const [loading, setLoading] = useState(true);
const [showCreatePage, setShowCreatePage] = useState(true);
const { triggerQuickSearchModal } = useModal();
+ const { currentWorkspaceId, workspacesMeta } = useAppState();
// Add ââ+Kâ shortcut keys as switches
+ const isPublic = workspacesMeta.find(
+ ({ id }) => id === currentWorkspaceId
+ )?.public;
+
useEffect(() => {
const down = (e: KeyboardEvent) => {
if (e.key === 'k' && e.metaKey) {
@@ -90,7 +96,9 @@ export const QuickSearch = ({ open, onClose }: TransitionsModalProps) => {
setShowCreatePage={setShowCreatePage}
/>
- {showCreatePage ? (
+ {isPublic ? (
+ <>>
+ ) : showCreatePage ? (
<>