Make websiteId optional in filter controls to enable dashboard filtering
Allows BoardControls to render filter bar and date picker without requiring a websiteId. Website-specific features (segments, cohorts, filter value autocomplete, save segment) are gracefully hidden when no websiteId is available.
This commit is contained in:
1 parent
d4a995d9cc
commit
c921231bb9
9 files changed
+11
-17
No files matched your search
@@ -17,7 +17,7 @@ import { X } from '@/components/icons';
|
||||
import { isSearchOperator } from '@/lib/params';
|
||||
|
||||
export interface FilterRecordProps {
|
||||
websiteId: string;
|
||||
websiteId?: string;
|
||||
type: string;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
|
||||
Reference in new issue
Block a user