only add missing object styles if table has configuration

This commit is contained in:
Jamie V 2025-02-11 12:48:27 -08:00
parent e985c0817a
commit fffa773cdf

View File

@ -36,8 +36,8 @@ export default class TelemetryTableConfiguration extends EventEmitter {
this.defaultOptions = options;
this.columns = {};
// Initialize objectStyles if it doesn't exist
if (!this.domainObject.configuration.objectStyles) {
// Initialize objectStyles if it doesn't exist, for items with configuration
if (this.domainObject.configuration && !this.domainObject.configuration.objectStyles) {
this.domainObject.configuration.objectStyles = {};
}