@fluid-topics/ft-reader-metadata 1.3.48 → 1.3.50

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.
@@ -150,8 +150,9 @@ class FtReaderMetadata extends withDateFormat(withI18n(FtReaderComponent)) {
150
150
  e.preventDefault();
151
151
  const tocNode = this.service.getTocNodeNow(currentTocId);
152
152
  this.service.getTopicInfo(tocNode).then((topicInfo) => {
153
+ var _a;
153
154
  const topicPivotMetadataValue = topicInfo === null || topicInfo === void 0 ? void 0 : topicInfo.metadata.find((metadata) => metadata.key == this.relativeTopicPivotMetadata);
154
- const url = new URL(getResultUrl(result));
155
+ const url = new URL((_a = getResultUrl(result)) !== null && _a !== void 0 ? _a : "");
155
156
  if (topicPivotMetadataValue) {
156
157
  topicPivotMetadataValue.values.forEach((value) => url.searchParams.append("topicPivot", value));
157
158
  }