Fix query clone respect mixins (#1631)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-05-04 20:54:32 +06:00
committed by GitHub
parent dfbf2d5263
commit e4e2af93dc
12 changed files with 3053 additions and 5296 deletions
@@ -18,7 +18,6 @@
import presentation, { createQuery, getClient } from '@anticrm/presentation'
import { Button, Grid, Icon, Label, ToggleWithLabel } from '@anticrm/ui'
import notification from '../plugin'
import justClone from 'just-clone'
const accountId = getCurrentAccount()._id
const typeQuery = createQuery()
@@ -42,7 +41,7 @@
providersQuery.query(notification.class.NotificationProvider, {}, (res) => (providers = res))
settingsQuery.query(notification.class.NotificationSetting, { space }, (res) => {
settings = convertToMap(res)
oldSettings = convertToMap(justClone(res))
oldSettings = convertToMap(client.getHierarchy().clone(res))
})
function convertToMap (