From 88c510938d08f24ee566085472738985df77e1b3 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 14 Jul 2023 11:00:38 +0100 Subject: [PATCH] Refactor #4136 --- components/lib/basecomponent/BaseComponent.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/basecomponent/BaseComponent.vue b/components/lib/basecomponent/BaseComponent.vue index b4f3b8c3ab..d3d1dbb790 100644 --- a/components/lib/basecomponent/BaseComponent.vue +++ b/components/lib/basecomponent/BaseComponent.vue @@ -442,7 +442,7 @@ export default { const datasetPrefix = 'data-pc-'; const self = getValue(obj, key, params); - const globalPT = searchInDefaultPT ? getValue(this.defaultPT, key, params) || (/./g.test(key) && !!params[key.split('.')[0]] ? getValue(this.globalPT, key, params) : undefined) : undefined; + const globalPT = searchInDefaultPT ? (/./g.test(key) && !!params[key.split('.')[0]] ? getValue(this.globalPT, key, params) : getValue(this.defaultPT, key, params)) : undefined; const merged = mergeProps(self, globalPT, { ...(key === 'root' && { [`${datasetPrefix}name`]: ObjectUtils.toFlatCase(this.$.type.name) }), [`${datasetPrefix}section`]: ObjectUtils.toFlatCase(key)