fix(editor): Fix empty variables notice indent in schema view (no-changelog) (#21761)

This commit is contained in:
Milorad FIlipović 2025-11-12 11:29:53 +01:00 committed by GitHub
parent bd62be0409
commit bc70aedead
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,7 +259,8 @@ const contextItems = computed(() => {
const variablesEmptyNotice: RenderNotice = {
type: 'notice',
id: 'notice-variablesEmpty',
level: renderItem.level ?? 0,
// Increase level to indent under $vars
level: (renderItem.level ?? 0) + 1,
message: i18n.baseText('dataMapping.schemaView.variablesEmpty'),
};
return [renderItem, variablesEmptyNotice];