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')` const StyledMainContainer = styled('div')`
min-width: 1200px; min-width: 1152px;
max-width: 1440px; max-width: 1392px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
gap: 24px; gap: 24px;

View File

@ -356,7 +356,7 @@ export function selectInferedField(collection: Collection, fieldName: string) {
} }
> >
)[fieldName]; )[fieldName];
const fields = 'fields' in collection ? collection.fields ?? [] : []; const fields = 'fields' in collection ? collection.fields ?? [] : undefined;
let field; let field;
// If collection has no fields or fieldName is not defined within inferables list, return null // If collection has no fields or fieldName is not defined within inferables list, return null