Skip to content

Commit

Permalink
chore: add siteRelativeEntityType to content
Browse files Browse the repository at this point in the history
affects: @esri/hub-common
  • Loading branch information
vivzhang committed May 22, 2024
1 parent f82a356 commit 9f94858
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/common/src/content/_internal/computeProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export function computeProps(
content.slug || content.id,
content.typeKeywords
),
siteRelativeEntityType: getHubRelativeUrl(content.type),
workspaceRelative: getRelativeWorkspaceUrl("content", content.id),
thumbnail: thumbnailUrl,
contentEditUrl: getContentEditUrl(model.item, requestOptions),
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/content/get-family.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function getFamily(type: string) {
let family;
// override default behavior for the rows that are highlighted in yellow here:
// https://esriis.sharepoint.com/:x:/r/sites/ArcGISHub/_layouts/15/Doc.aspx?sourcedoc=%7BADA1C9DC-4F6C-4DE4-92C6-693EF9571CFA%7D&file=Hub%20Routes.xlsx&nav=MTBfe0VENEREQzI4LUZFMDctNEI0Ri04NjcyLThCQUE2MTA0MEZGRn1fezIwMTIwMEJFLTA4MEQtNEExRC05QzA4LTE5MTAzOUQwMEE1RH0&action=default&mobileredirect=true&cid=df1c874b-c367-4cea-bc13-7bebfad3f2ac
switch (type.toLowerCase()) {
switch (type?.toLowerCase()) {
// NOTE: we really want to put tiled image services in the maps family
// but we would need the typekeywords to differentiate them
// for now send them to the maps route here:
Expand Down

0 comments on commit 9f94858

Please sign in to comment.