diff --git a/apps/dashboard/src/components/auth/customize-inbox-playground.tsx b/apps/dashboard/src/components/auth/customize-inbox-playground.tsx
index 0a7d9cdfdd3..91671ce34c9 100644
--- a/apps/dashboard/src/components/auth/customize-inbox-playground.tsx
+++ b/apps/dashboard/src/components/auth/customize-inbox-playground.tsx
@@ -107,7 +107,7 @@ function StylePreviewCard({
- {style.label}
+ {style.label}
);
diff --git a/apps/dashboard/src/components/auth/inbox-playground.tsx b/apps/dashboard/src/components/auth/inbox-playground.tsx
index 584ffe3c475..7a7bfde5549 100644
--- a/apps/dashboard/src/components/auth/inbox-playground.tsx
+++ b/apps/dashboard/src/components/auth/inbox-playground.tsx
@@ -91,7 +91,7 @@ export function InboxPlayground() {
});
const { triggerWorkflow, isPending } = useTriggerWorkflow();
- const { data } = useWorkflows();
+ const { data } = useWorkflows({ query: ONBOARDING_DEMO_WORKFLOW_ID });
const auth = useAuth();
const [hasNotificationBeenSent, setHasNotificationBeenSent] = useState(false);
const navigate = useNavigate();
diff --git a/apps/dashboard/src/components/auth/inbox-preview-content.tsx b/apps/dashboard/src/components/auth/inbox-preview-content.tsx
index 753b129faa8..cdb692c1b63 100644
--- a/apps/dashboard/src/components/auth/inbox-preview-content.tsx
+++ b/apps/dashboard/src/components/auth/inbox-preview-content.tsx
@@ -101,7 +101,7 @@ function SendNotificationArrow(props: SVGProps) {
);
diff --git a/apps/dashboard/src/hooks/use-workflows.ts b/apps/dashboard/src/hooks/use-workflows.ts
index 35f5e82411b..75028765a74 100644
--- a/apps/dashboard/src/hooks/use-workflows.ts
+++ b/apps/dashboard/src/hooks/use-workflows.ts
@@ -7,15 +7,18 @@ import { useEnvironment } from '../context/environment/hooks';
interface UseWorkflowsParams {
limit?: number;
offset?: number;
+ query?: string;
}
-export function useWorkflows({ limit = 12, offset = 0 }: UseWorkflowsParams = {}) {
+export function useWorkflows({ limit = 12, offset = 0, query = '' }: UseWorkflowsParams = {}) {
const { currentEnvironment } = useEnvironment();
const workflowsQuery = useQuery({
- queryKey: [QueryKeys.fetchWorkflows, currentEnvironment?._id, { limit, offset }],
+ queryKey: [QueryKeys.fetchWorkflows, currentEnvironment?._id, { limit, offset, query }],
queryFn: async () => {
- const { data } = await getV2<{ data: ListWorkflowResponse }>(`/workflows?limit=${limit}&offset=${offset}`);
+ const { data } = await getV2<{ data: ListWorkflowResponse }>(
+ `/workflows?limit=${limit}&offset=${offset}&query=${query}`
+ );
return data;
},
placeholderData: keepPreviousData,