mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 14:56:37 +00:00
Remove unassigned from order configuration in areas strategy
This commit is contained in:
parent
e7e062a222
commit
7f1db9a151
@ -183,7 +183,9 @@ export class HaAreasFloorsDisplayEditor extends LitElement {
|
|||||||
const floorIds = this._sortedFloors(
|
const floorIds = this._sortedFloors(
|
||||||
this.hass.floors,
|
this.hass.floors,
|
||||||
this.value?.floors_display?.order
|
this.value?.floors_display?.order
|
||||||
).map((floor) => floor.floor_id);
|
)
|
||||||
|
.map((floor) => floor.floor_id)
|
||||||
|
.filter((floorId) => floorId !== UNASSIGNED_FLOOR);
|
||||||
const newOrder = [...floorIds];
|
const newOrder = [...floorIds];
|
||||||
const movedFloorId = newOrder.splice(oldIndex, 1)[0];
|
const movedFloorId = newOrder.splice(oldIndex, 1)[0];
|
||||||
newOrder.splice(newIndex, 0, movedFloorId);
|
newOrder.splice(newIndex, 0, movedFloorId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user