mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-02 05:09:26 +00:00
fix: filter props on component update (#8080)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
4d3488b81e
commit
f98152986c
@ -73,7 +73,7 @@
|
||||
.then((res) => {
|
||||
if (current === counter) {
|
||||
Ctor = res
|
||||
_props = props
|
||||
_props = filterDefaultUndefined(props, props)
|
||||
loading = false
|
||||
}
|
||||
})
|
||||
@ -85,11 +85,11 @@
|
||||
} else {
|
||||
loading = false
|
||||
Ctor = component
|
||||
_props = props
|
||||
_props = filterDefaultUndefined(props, props)
|
||||
}
|
||||
} else {
|
||||
Ctor = _is
|
||||
_props = props
|
||||
_props = filterDefaultUndefined(props, props)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
$: urlSize = getUrlSize(size)
|
||||
|
||||
function getDimensions (value: Attachment, size: AttachmentImageSize): Dimensions {
|
||||
if (size === 'auto') {
|
||||
if (size === 'auto' || size == null) {
|
||||
return {
|
||||
width: 'auto',
|
||||
height: 'auto',
|
||||
|
Loading…
Reference in New Issue
Block a user