Skip to content

Commit

Permalink
show image if content is descendant of image
Browse files Browse the repository at this point in the history
  • Loading branch information
VargaJoe committed Oct 12, 2023
1 parent 00770c7 commit a0f462a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/sensenet/src/services/content-context-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export function getPrimaryActionUrl({
return getUrlForContent({ content, uiSettings, location, action: 'edit-binary', snRoute, removePath })
}

if (content.Type === 'Image') {
if (content.Type === 'Image' || repository.schemas.isContentFromType<ContentType>(content, 'Image')) {
return getUrlForContent({ content, uiSettings, location, action: 'image', snRoute, removePath })
}

Expand Down

0 comments on commit a0f462a

Please sign in to comment.