mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-21 07:46:24 +00:00
Allow enum value to be used in filters (#2085)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
4b5cecdda9
commit
f4ff886ce1
@ -518,6 +518,10 @@ export function createModel (builder: Builder): void {
|
|||||||
component: view.component.ValueFilter
|
component: view.component.ValueFilter
|
||||||
})
|
})
|
||||||
|
|
||||||
|
builder.mixin(core.class.EnumOf, core.class.Class, view.mixin.AttributeFilter, {
|
||||||
|
component: view.component.ValueFilter
|
||||||
|
})
|
||||||
|
|
||||||
builder.mixin(core.class.RefTo, core.class.Class, view.mixin.AttributeFilter, {
|
builder.mixin(core.class.RefTo, core.class.Class, view.mixin.AttributeFilter, {
|
||||||
component: view.component.ObjectFilter
|
component: view.component.ObjectFilter
|
||||||
})
|
})
|
||||||
|
@ -99,7 +99,11 @@ class InMemoryAdapter implements DbAdapter {
|
|||||||
|
|
||||||
async init (model: Tx[]): Promise<void> {
|
async init (model: Tx[]): Promise<void> {
|
||||||
for (const tx of model) {
|
for (const tx of model) {
|
||||||
await this.modeldb.tx(tx)
|
try {
|
||||||
|
await this.modeldb.tx(tx)
|
||||||
|
} catch (err: any) {
|
||||||
|
console.error('skip broken TX', err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user