mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-03 13:53:42 +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) => {
|
.then((res) => {
|
||||||
if (current === counter) {
|
if (current === counter) {
|
||||||
Ctor = res
|
Ctor = res
|
||||||
_props = props
|
_props = filterDefaultUndefined(props, props)
|
||||||
loading = false
|
loading = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -85,11 +85,11 @@
|
|||||||
} else {
|
} else {
|
||||||
loading = false
|
loading = false
|
||||||
Ctor = component
|
Ctor = component
|
||||||
_props = props
|
_props = filterDefaultUndefined(props, props)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Ctor = _is
|
Ctor = _is
|
||||||
_props = props
|
_props = filterDefaultUndefined(props, props)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
$: urlSize = getUrlSize(size)
|
$: urlSize = getUrlSize(size)
|
||||||
|
|
||||||
function getDimensions (value: Attachment, size: AttachmentImageSize): Dimensions {
|
function getDimensions (value: Attachment, size: AttachmentImageSize): Dimensions {
|
||||||
if (size === 'auto') {
|
if (size === 'auto' || size == null) {
|
||||||
return {
|
return {
|
||||||
width: 'auto',
|
width: 'auto',
|
||||||
height: 'auto',
|
height: 'auto',
|
||||||
|
Loading…
Reference in New Issue
Block a user