Skip to content

Commit

Permalink
Fix 'Move to view' operation
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts committed Jun 23, 2024
1 parent 42b5fa6 commit 75730b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panels/lovelace/components/hui-card-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class HuiCardOptions extends LitElement {
allowDashboardChange: true,
header: this.hass!.localize("ui.panel.lovelace.editor.move_card.header"),
viewSelectedCallback: async (urlPath, selectedDashConfig, viewIndex) => {
const view = this.lovelace!.config.views[viewIndex];
const view = selectedDashConfig.views[viewIndex];

if (!isStrategyView(view) && view.type === SECTION_VIEW_LAYOUT) {
showAlertDialog(this, {
Expand Down

0 comments on commit 75730b4

Please sign in to comment.