mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-07 15:09:30 +00:00
fix: harden HA area relocation regressions
Issue: #126 User-Visible: no
This commit is contained in:
@@ -5207,6 +5207,11 @@ export class HouseplanCard extends LitElement {
|
||||
// Await this internal lifecycle write. A debounced fire-and-forget
|
||||
// save would leave the local snapshot advanced after a rejection,
|
||||
// suppressing the retry required by the delete-first contract.
|
||||
// If the registry rebuild was itself triggered by a debounced user
|
||||
// mutation, the candidate below already contains that mutation.
|
||||
// Cancel its redundant timer so one UI Save remains one transport
|
||||
// write (#44) while still sharing the serialized write chain.
|
||||
if (this._saveConfigDebounced.pending()) this._saveConfigDebounced.cancel();
|
||||
await this._writeConfig();
|
||||
} catch (error: unknown) {
|
||||
const current = this._settings;
|
||||
|
||||
Reference in New Issue
Block a user