Add check for meta on record panel

This commit is contained in:
Jack Anderson 2024-10-14 09:25:12 +01:00 committed by y.yerli
parent e36e287669
commit 8a783f2356

View file

@ -141,7 +141,7 @@ export class RecordContentComponent implements OnInit, OnDestroy {
let isCollapsed = false;
panel.label = panel?.label?.toUpperCase() ?? '';
const panelKey = panel?.key?.toUpperCase() ?? '';
if (panel.meta.panelDefault === 'collapsed') {
if (panel.meta?.panelDefault === 'collapsed') {
isCollapsed = true;
}
panel.isCollapsed = isCollapsed;