@fluid-topics/ft-search-result-metadata 1.1.68 → 1.1.70

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.
@@ -160,7 +160,7 @@ class FtSearchResultMetadata extends withI18n(FtSearchResultComponent) {
160
160
  var _a, _b, _c, _d, _e;
161
161
  super.update(props);
162
162
  if ((props.has("result") || props.has("key")) && this.result) {
163
- this.resultMetadata = (_a = this.resultData()) === null || _a === void 0 ? void 0 : _a.metadata.find(m => m.key == this.key);
163
+ this.resultMetadata = (_a = this.resultData()) === null || _a === void 0 ? void 0 : _a.metadata.find(m => m.key == this.key && m.values.length > 0);
164
164
  this.metadataLabel = this.findClusterMetadataLabel();
165
165
  }
166
166
  if (props.has("key") && this.useAsClusterSwitch) {