mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-29 15:57:20 +00:00
Fix for login flow switch (#1609)
* Fix for login flow switch * Switch flow shall clear step data
This commit is contained in:
parent
31127ccf29
commit
f0251d3056
@ -122,7 +122,8 @@ class HaAuthFlow extends LocalizeLiteMixin(PolymerElement) {
|
|||||||
_state: 'step',
|
_state: 'step',
|
||||||
};
|
};
|
||||||
|
|
||||||
if (this._step && step.step_id !== this._step.step_id) {
|
if (this._step &&
|
||||||
|
(step.flow_id !== this._step.flow_id || step.step_id !== this._step.step_id)) {
|
||||||
props._stepData = {};
|
props._stepData = {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,7 +155,10 @@ class HaForm extends EventsMixin(PolymerElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_getValue(obj, item) {
|
_getValue(obj, item) {
|
||||||
return obj[item.name];
|
if (obj) {
|
||||||
|
return obj[item.name];
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
_valueChanged(ev) {
|
_valueChanged(ev) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user