@fluid-topics/ft-reader-metadata 1.2.45 → 1.2.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -173,8 +173,10 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
173
173
  (_d = this.stateManager) === null || _d === void 0 ? void 0 : _d.unregisterMetadataForSwitchToRelatives(this.key);
174
174
  }
175
175
  }
176
- if ((props.has("metadata") || props.has("hierarchicalValueTruncatingLevel") || this.dateFormatOptionsChanged(props)) && this.metadata) {
177
- this.flatMetadata = ClusteringHelper.flattenMetadata(this.metadata, this.hierarchicalValueTruncatingLevel, this.getDateFormatter(this.metadata.key));
176
+ if (props.has("metadata") || props.has("hierarchicalValueTruncatingLevel") || this.dateFormatOptionsChanged(props)) {
177
+ this.flatMetadata = this.metadata
178
+ ? ClusteringHelper.flattenMetadata(this.metadata, this.hierarchicalValueTruncatingLevel, this.getDateFormatter(this.metadata.key))
179
+ : undefined;
178
180
  }
179
181
  }
180
182
  get metadataLabel() {