diff --git a/src/AutoUI/Lenses/index.tsx b/src/AutoUI/Lenses/index.tsx index a2edda2..3c48453 100644 --- a/src/AutoUI/Lenses/index.tsx +++ b/src/AutoUI/Lenses/index.tsx @@ -35,7 +35,13 @@ export const getLenses = ( return []; } - const filteredLenses: LensTemplate[] = lenses.concat(customLenses ?? []); + const filteredLenses: LensTemplate[] = lenses + .concat(customLenses ?? []) + .filter((l) => + Array.isArray(data) + ? l.data.format !== 'summary' + : l.data.format !== 'table', + ); const slugs = filteredLenses.map((lens) => lens.slug); if (slugs.length > uniq(slugs).length) {