mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Fix entity picker delete entity (#20542)
This commit is contained in:
parent
fbef0b0186
commit
af37d57779
@ -409,7 +409,7 @@ export class HaEntityPicker extends LitElement {
|
||||
ev.stopPropagation();
|
||||
const newValue = ev.detail.value;
|
||||
|
||||
if (newValue.startsWith(CREATE_ID)) {
|
||||
if (newValue && newValue.startsWith(CREATE_ID)) {
|
||||
const domain = newValue.substring(CREATE_ID.length);
|
||||
showHelperDetailDialog(this, {
|
||||
domain,
|
||||
|
Loading…
x
Reference in New Issue
Block a user