diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index eb3ede7bc..6b2412243 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -270,7 +270,11 @@ export default { // $attrs without `pt:*` return Object.entries(this.$attrs || {}) .filter(([key]) => !key?.startsWith('pt:')) - .reduce((acc, [key, value]) => (acc[key] = value) && acc, {}); + .reduce((acc, [key, value]) => { + acc[key] = value; + + return acc; + }, {}); } } };