Skip to content
This repository was archived by the owner on Nov 19, 2025. It is now read-only.

Commit ff9c469

Browse files
authored
fix(hub-common): catalog migrations are applied to discussion board c… (#2123)
1 parent b5083aa commit ff9c469

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.changeset/rich-trams-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@esri/hub-common": patch
3+
---
4+
5+
catalog migrations are applied to discussion board catalogs

packages/common/src/discussions/_internal/computeProps.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { computeItemProps } from "../../core/_internal/computeItemProps";
55
import { applyDiscussionMigrations } from "./applyDiscussionMigrations";
66
import { IHubDiscussion } from "../../core/types/IHubDiscussion";
77
import { getItemThumbnailUrl } from "../../resources/get-item-thumbnail-url";
8+
import { upgradeCatalogSchema } from "../../search/upgradeCatalogSchema";
89

910
/**
1011
* Given a model and a Discussion, set various computed properties that can't be directly mapped
@@ -35,6 +36,8 @@ export function computeProps(
3536
token
3637
);
3738

39+
discussion.catalog = upgradeCatalogSchema(discussion.catalog || {});
40+
3841
// Apply migrations
3942
discussion = applyDiscussionMigrations(discussion as IHubDiscussion);
4043

0 commit comments

Comments
 (0)