From bf9f83f13aa930d359dac9d1539ea2755bd4edc0 Mon Sep 17 00:00:00 2001 From: ljf Date: Fri, 20 Aug 2021 20:49:23 +0200 Subject: [PATCH] [fix]New config panel api --- app/src/views/app/AppConfigPanel.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/views/app/AppConfigPanel.vue b/app/src/views/app/AppConfigPanel.vue index 77be9ef1..737f1390 100644 --- a/app/src/views/app/AppConfigPanel.vue +++ b/app/src/views/app/AppConfigPanel.vue @@ -81,7 +81,7 @@ export default { return evaluate(context, expression) }, onQueriesResponse (data) { - if (!data.config_panel || data.config_panel.length === 0) { + if (!data.panel || data.panel.length === 0) { this.panels = null return } @@ -89,7 +89,7 @@ export default { const forms = {} const validations_ = {} const panels_ = [] - for (const { id, name, help, sections } of data.config_panel.panel) { + for (const { id, name, help, sections } of data.panel) { const panel_ = { id, name, sections: [] } if (help) panel_.help = formatI18nField(help) forms[id] = {}