Starting on the pixelEditor. Fixing state reset issue when moving stateful components in the store path. adding hasField host function
This commit is contained in:
parent
080273ac25
commit
eb5618c64e
4 changed files with 61 additions and 5 deletions
|
|
@ -92,6 +92,9 @@ export const _rt = {
|
|||
}
|
||||
return { _tag: qi === q.length ? 'True' : 'False' };
|
||||
},
|
||||
hasField: (field: string) => (obj: any) => ({
|
||||
_tag: (typeof obj === 'object' && obj !== null && field in obj) ? 'True' : 'False'
|
||||
}),
|
||||
storeSearch: (query: string) => {
|
||||
return Object.keys(store).filter(name => _rt.fuzzyMatch(query)(name)._tag === 'True');
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue