fix: filter props on component update (#8080)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-02-24 15:00:48 +03:00 committed by Andrey Sobolev
parent 4d3488b81e
commit f98152986c
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2
2 changed files with 4 additions and 4 deletions

View File

@ -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)
}
}

View File

@ -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',