mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Added hide logic to widget properties accordian menu item when it contains no items (#3589)
This commit is contained in:
parent
6b1625c1b4
commit
2b77414fab
1 changed files with 18 additions and 16 deletions
|
|
@ -54,22 +54,24 @@ export const baseComponentProperties = (
|
|||
darkMode
|
||||
) => {
|
||||
let items = [];
|
||||
items.push({
|
||||
title: 'Properties',
|
||||
children: properties.map((property) =>
|
||||
renderElement(
|
||||
component,
|
||||
componentMeta,
|
||||
paramUpdated,
|
||||
dataQueries,
|
||||
property,
|
||||
'properties',
|
||||
currentState,
|
||||
allComponents,
|
||||
darkMode
|
||||
)
|
||||
),
|
||||
});
|
||||
if (properties.length > 0) {
|
||||
items.push({
|
||||
title: 'Properties',
|
||||
children: properties.map((property) =>
|
||||
renderElement(
|
||||
component,
|
||||
componentMeta,
|
||||
paramUpdated,
|
||||
dataQueries,
|
||||
property,
|
||||
'properties',
|
||||
currentState,
|
||||
allComponents,
|
||||
darkMode
|
||||
)
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
if (events.length > 0) {
|
||||
items.push({
|
||||
|
|
|
|||
Loading…
Reference in a new issue