Add edit ToolType; Users type; Reports cleanup; Type safery

This commit is contained in:
cracklesparkle
2024-12-19 17:00:11 +09:00
parent 71055e7cd0
commit 5218ee851f
7 changed files with 13 additions and 80 deletions

View File

@ -114,7 +114,7 @@ const ObjectList = ({
return (
<NavLink onClick={() => {
setSelectedObjectType(id)
}} rightSection={<IconChevronDown size={14} />} p={0} label={`${id} ${label} ${count ? `(${count})` : ''}`}>
}} rightSection={<IconChevronDown size={14} />} p={0} label={`${label} ${count ? `(${count})` : ''}`}>
{Array.isArray(data) && data.map((type) => (
<NavLink key={type.object_id} label={type.caption ? type.caption : 'Без названия'} p={0} onClick={() => setCurrentObjectId(type.object_id)} />
))}