Fix min width and title detection in file collections

This commit is contained in:
Daniel Lautzenheiser 2022-11-07 19:33:00 -05:00
parent 1032309cf5
commit 8b9e7e4fe2
No known key found for this signature in database
GPG Key ID: D2F75F7DD915527E
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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