Skip to content

Commit

Permalink
fix: filters out "has image file" property (DEV-3477) (#1548)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmastnt committed Apr 15, 2024
1 parent 2dd7f7d commit 2cd4f60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -511,7 +511,11 @@ export class ResourceComponent implements OnChanges, OnDestroy {

// sort properties by guiOrder
props = props
.filter(prop => prop.propDef.objectType !== Constants.GeomValue)
.filter(
prop =>
prop.propDef.objectType !== Constants.GeomValue &&
!prop.propDef.objectType.includes(Constants.StillImageAbstractFileValue)
)
.sort((a, b) => (a.guiDef.guiOrder > b.guiDef.guiOrder ? 1 : -1))
// to get equal results on all browser engines which implements sorting in different way
// properties list has to be sorted again, pushing all "has..." properties to the bottom
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -44,7 +44,7 @@
"@angular/platform-browser-dynamic": "^16.2.12",
"@angular/router": "^16.2.12",
"@ckeditor/ckeditor5-angular": "^5.2.0",
"@dasch-swiss/dsp-js": "^9.1.15",
"@dasch-swiss/dsp-js": "^9.1.16",
"@dasch-swiss/jdnconvertiblecalendar": "^0.0.3",
"@dasch-swiss/jdnconvertiblecalendardateadapter": "^1.1.1",
"@grafana/faro-web-sdk": "^1.3.6",
Expand Down

0 comments on commit 2cd4f60

Please sign in to comment.