Skip to content

Commit

Permalink
Fix add/delete card inside section
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya committed Jul 17, 2024
1 parent 8ab9b63 commit e629c68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/lovelace/editor/lovelace-path.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,5 @@ export const findLovelaceItems = <T extends keyof LovelaceItemKeys>(
if (isStrategySection(section)) {
throw new Error("Can not find cards in a strategy section");
}
return view[key] as LovelaceItemKeys[T] | undefined;
return section[key] as LovelaceItemKeys[T] | undefined;
};

0 comments on commit e629c68

Please sign in to comment.