Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
5353ad1b
Commit
5353ad1b
authored
May 18, 2021
by
Stefan Probst
Browse files
fix: show hidden properties
parent
5b895253
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/screens/item/ItemLayout.tsx
View file @
5353ad1b
...
@@ -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
!
)
)
{
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment