Commit 5353ad1b authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: show hidden properties

parent 5b895253
...@@ -468,7 +468,9 @@ function useItemMetadata({ ...@@ -468,7 +468,9 @@ function useItemMetadata({
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const type = property.type! const type = property.type!
if ( if (
type.hidden === true || // The api returns hidden properties only for authenticated users with role moderator/administrator,
// and we want to show hidden properties in the ui for these users.
// type.hidden === true ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
ADDITIONAL_HIDDEN_PROPERTIES.includes(type.code!) ADDITIONAL_HIDDEN_PROPERTIES.includes(type.code!)
) { ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment