Fix 'Move to view' operation (#21142)

This commit is contained in:
karwosts 2024-06-24 02:56:06 -07:00 committed by GitHub
parent a56b9a96ce
commit 4cc9e74ea8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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, {