fix: add null check for plugin list in config to fix empty list issue #4392
+21
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation / 动机
修复了 Dashboard 配置页面中的两个错误:
Translation key not found: features.config-metadata.help.helpSuffix错误TypeError: Cannot read properties of null (reading 'localeCompare')错误这些错误导致:
Modifications / 改动点
核心文件修改:
dashboard/src/i18n/locales/zh-CN/features/config-metadata.json
help翻译对象,包含所有必需的键:documentation、support、helpText、helpPrefix、helpMiddle、helpSuffixdashboard/src/i18n/locales/en-US/features/config-metadata.json
help翻译对象dashboard/src/components/shared/PluginSetSelector.vue
localeCompare调用失败Screenshots or Test Results / 运行截图或测试结果
Checklist / 检查清单
requirements.txt和pyproject.toml文件相应位置。/ I have ensured that no new dependencies are introduced, OR if new dependencies are introduced, they have been added to the appropriate locations inrequirements.txtandpyproject.toml.Summary by Sourcery
修复仪表盘配置页面上与缺失翻译以及插件列表排序错误相关的问题。
错误修复:
null或undefined时,插件列表排序抛出错误。Original summary in English
Summary by Sourcery
Fix issues on the dashboard configuration page related to missing translations and plugin list sorting errors.
Bug Fixes: