mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-22 15:34:26 +01:00
fix issue if there is only one top level card
This commit is contained in:
@@ -166,6 +166,8 @@ class LuiBackendConfig(object):
|
|||||||
last_card = next
|
last_card = next
|
||||||
cur.uuid_next = next.uuid
|
cur.uuid_next = next.uuid
|
||||||
next.uuid_prev = cur.uuid
|
next.uuid_prev = cur.uuid
|
||||||
|
# if there is only one top level card first and last card will be none
|
||||||
|
if first_card and last_card:
|
||||||
first_card.uuid_prev = last_card.uuid
|
first_card.uuid_prev = last_card.uuid
|
||||||
last_card.uuid_next = first_card.uuid
|
last_card.uuid_next = first_card.uuid
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user