From 8b9e7e4fe20af253f07da341aeee618c140df5b3 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Mon, 7 Nov 2022 19:33:00 -0500 Subject: [PATCH] Fix min width and title detection in file collections --- core/src/components/App/MainView.tsx | 4 ++-- core/src/lib/util/collection.util.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/components/App/MainView.tsx b/core/src/components/App/MainView.tsx index 9fb97571..e6e59b75 100644 --- a/core/src/components/App/MainView.tsx +++ b/core/src/components/App/MainView.tsx @@ -23,8 +23,8 @@ const StyledMainContainerWrapper = styled('div')` `; const StyledMainContainer = styled('div')` - min-width: 1200px; - max-width: 1440px; + min-width: 1152px; + max-width: 1392px; margin: 0 auto; display: flex; gap: 24px; diff --git a/core/src/lib/util/collection.util.ts b/core/src/lib/util/collection.util.ts index 32415792..38408d9c 100644 --- a/core/src/lib/util/collection.util.ts +++ b/core/src/lib/util/collection.util.ts @@ -356,7 +356,7 @@ export function selectInferedField(collection: Collection, fieldName: string) { } > )[fieldName]; - const fields = 'fields' in collection ? collection.fields ?? [] : []; + const fields = 'fields' in collection ? collection.fields ?? [] : undefined; let field; // If collection has no fields or fieldName is not defined within inferables list, return null