mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix retreiving topic value when using MQTT publish (#14554)
fixes undefined
This commit is contained in:
parent
4fcfcbeefb
commit
ef3caf91f1
@ -82,7 +82,7 @@ class HaPanelDevMqtt extends LitElement {
|
||||
}
|
||||
|
||||
private _handleTopic(ev: CustomEvent) {
|
||||
this.topic = ev.detail.value;
|
||||
this.topic = (ev.target! as any).value;
|
||||
if (localStorage && this.inited) {
|
||||
localStorage["panel-dev-mqtt-topic"] = this.topic;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user