mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 01:10:42 +08:00
Add check for tab defs
This commit is contained in:
parent
a9f65b062b
commit
16dc7b9d1c
1 changed files with 5 additions and 0 deletions
|
@ -34,6 +34,7 @@ import {map, shareReplay} from 'rxjs/operators';
|
|||
import {RecordContentConfig, RecordContentDataSource} from './record-content.model';
|
||||
import {FieldLayoutConfig, FieldLayoutDataSource} from '../field-layout/field-layout.model';
|
||||
import {LanguageStore} from '../../store/language/language.store';
|
||||
import {emptyObject} from "../../common/utils/object-utils";
|
||||
|
||||
@Component({
|
||||
selector: 'scrm-record-content',
|
||||
|
@ -88,6 +89,10 @@ export class RecordContentComponent implements OnInit, OnDestroy {
|
|||
|
||||
const tabDefs = this.mapTabDefs();
|
||||
|
||||
if (emptyObject(tabDefs)){
|
||||
return;
|
||||
}
|
||||
|
||||
Object.keys(tabDefs).forEach(tabDefKey => {
|
||||
const tabDef = tabDefs[tabDefKey];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue