Created: {timestamp(dataValue?.created)}
Edited: {timestamp(dataValue?.edited)}
{dataValue?.workflow_id !== "" ?
Workflow: {dataValue.workflow_id}
: null}
{dataValue?.category !== "" && dataValue?.category !== "default" ?
Category: {dataValue.category}
: null}
{dataValue?.enrichments !== undefined && dataValue?.enrichments !== null && dataValue.enrichments.length > 0 ?
Enrichments: {dataValue.enrichments.length}
: null}
{dataValue?.tags !== undefined && dataValue?.tags !== null && dataValue?.tags?.length > 0 ?
Tags
{dataValue.tags?.map((tag, index) => {
return (
{
var newTags = dataValue.tags.filter((t) => t !== tag)
if (newTags.length === 0) {
newTags = ["none"]
} else if (newTags.length > 1) {
newTags = newTags.filter((t) => t !== "none")
}
setDataValue({
...dataValue,
tags: newTags,
})
}}
/>
)
})}
: null}
: null}