mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
fix: reject config writes without a revision
Issue: #340 User-Visible: yes
This commit is contained in:
@@ -36,7 +36,7 @@ export function checkCoordinateWriteBarriers(root = defaultRoot) {
|
||||
if (configWrites.length !== 1) errors.push(`frontend config writer inventory: ${configWrites.length}`);
|
||||
for (const index of configWrites) requireWindow(
|
||||
errors, frontend, index,
|
||||
/const canonicalCandidate = canonicalizeConfigGeometry\(candidate\);[\s\S]*config: canonicalCandidate/,
|
||||
/const canonicalCandidate = canonicalizeConfigGeometry\(candidate\);[\s\S]*config: canonicalCandidate,[\s\S]*expected_rev: this\._cfgRev/,
|
||||
'frontend config/set', 600,
|
||||
);
|
||||
if (occurrences(frontend, '._sendConfigCandidate(candidate)').length !== 2) {
|
||||
|
||||
Reference in New Issue
Block a user