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) => { .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)
} }
} }

View File

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