Commit 38169c15 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: don't show thumbnail and media in metadata panel

parent 1485def3
......@@ -322,6 +322,9 @@ function ItemMedia({ properties }: { properties: ItemProperties }) {
)
}
/** thumbnail and media are already shown, no need to list them in the metadata panel */
const HIDDEN_PROPERTIES = ['thumbnail', 'media']
/**
* Properties.
*/
......@@ -343,6 +346,8 @@ function ItemPropertiesList({
const grouped: Record<string, Array<ItemProperty>> = {}
properties.forEach((property) => {
if (HIDDEN_PROPERTIES.includes(property.type?.code as string)) return
const label = property.type?.label as string
if (!Array.isArray(grouped[label])) {
grouped[label] = []
......
Markdown is supported
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