fix: match excludedConfig against the config name, not the escaped file name

pull/241/head
paul 2026-10-11 13:11:36 +02:00
parent 1d67af1558
commit 40553ad4aa
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ export default () => ({
if ( if (
configType && configType !== type configType && configType !== type
|| !strapi.plugin('config-sync').types[type] || !strapi.plugin('config-sync').types[type]
|| !isEmpty(strapi.config.get('plugin::config-sync.excludedConfig').filter((option) => `${type}.${name}`.startsWith(option))) || !isEmpty(strapi.config.get('plugin::config-sync.excludedConfig').filter((option) => `${type}.${formattedName}`.startsWith(option)))
) { ) {
return; return;
} }