dashboards.ts 229 B

123456789
  1. import { ReportDashboard } from '../../types';
  2. export const dashboardsInvalid = (dashboards?: ReportDashboard[]) => {
  3. if (!dashboards?.length) {
  4. return true;
  5. }
  6. return !dashboards.some((db) => !!db.dashboard?.uid);
  7. };