Skip to content
This repository was archived by the owner on Aug 24, 2024. It is now read-only.

Commit ce0a68d

Browse files
committed
Update property editor checkboxes when brush colour is changed elsewhere
1 parent 5312ee0 commit ce0a68d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/components/PropertyEditor.svelte

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
88
let propertyValues = $store.brushColour.split('').map((v) => v === '1');
99
10+
store.subscribe((value) => {
11+
propertyValues = value.brushColour.split('').map((v) => v === '1');
12+
});
13+
1014
$: {
1115
$store.brushColour = propertyValues.map((v) => (v ? '1' : '0')).join('');
1216
}

0 commit comments

Comments
 (0)