mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix table not showing on edit
This commit is contained in:
@@ -503,7 +503,6 @@ const SettingsCustomization: FC = () => {
|
|||||||
{tableList.map((de: DeviceEntity) => (
|
{tableList.map((de: DeviceEntity) => (
|
||||||
<Row key={de.id} item={de} onClick={() => editEntity(de)}>
|
<Row key={de.id} item={de} onClick={() => editEntity(de)}>
|
||||||
<Cell stiff>
|
<Cell stiff>
|
||||||
{!deviceEntity && (
|
|
||||||
<ToggleButtonGroup
|
<ToggleButtonGroup
|
||||||
size="small"
|
size="small"
|
||||||
color="secondary"
|
color="secondary"
|
||||||
@@ -552,12 +551,11 @@ const SettingsCustomization: FC = () => {
|
|||||||
/>
|
/>
|
||||||
</ToggleButton>
|
</ToggleButton>
|
||||||
</ToggleButtonGroup>
|
</ToggleButtonGroup>
|
||||||
)}
|
|
||||||
</Cell>
|
</Cell>
|
||||||
<Cell>{!deviceEntity && formatName(de)}</Cell>
|
<Cell>{formatName(de)}</Cell>
|
||||||
<Cell>{!deviceEntity && !(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.mi)}</Cell>
|
<Cell>{!(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.mi)}</Cell>
|
||||||
<Cell>{!deviceEntity && !(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.ma)}</Cell>
|
<Cell>{!(de.m & DeviceEntityMask.DV_READONLY) && formatValue(de.ma)}</Cell>
|
||||||
<Cell>{!deviceEntity && formatValue(de.v)}</Cell>
|
<Cell>{formatValue(de.v)}</Cell>
|
||||||
</Row>
|
</Row>
|
||||||
))}
|
))}
|
||||||
</Body>
|
</Body>
|
||||||
|
|||||||
Reference in New Issue
Block a user