forked from MapComplete/MapComplete
Themes: add validation check if a mapping does not erase another mapping completely
This commit is contained in:
parent
7d43bb5983
commit
556f6d0b93
43 changed files with 5015 additions and 4778 deletions
|
@ -110,10 +110,6 @@ export abstract class EditJsonState<T> {
|
|||
public getStoreFor<T>(path: ReadonlyArray<string | number>): UIEventSource<T | undefined> {
|
||||
const key = path.join(".")
|
||||
|
||||
// TODO check if this gives problems when changing the order of e.g. mappings and questions
|
||||
if (this._stores.has(key)) {
|
||||
return this._stores.get(key)
|
||||
}
|
||||
const store = new UIEventSource<any>(this.getCurrentValueFor(path))
|
||||
store.addCallback((v) => {
|
||||
this.setValueAt(path, v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue