forked from MapComplete/MapComplete
Fix personal theme, add possibility to sync layer selection
This commit is contained in:
parent
4f45fed45a
commit
419f2b1351
10 changed files with 68 additions and 36 deletions
|
@ -326,8 +326,10 @@ export class UIEventSource<T> {
|
|||
this.addCallback((latest) => otherSource.setData(latest));
|
||||
const self = this;
|
||||
otherSource.addCallback((latest) => self.setData(latest));
|
||||
if (reverseOverride && otherSource.data !== undefined) {
|
||||
this.setData(otherSource.data);
|
||||
if (reverseOverride) {
|
||||
if(otherSource.data !== undefined){
|
||||
this.setData(otherSource.data);
|
||||
}
|
||||
} else if (this.data === undefined) {
|
||||
this.setData(otherSource.data);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue