[bug] Plugin load fix (#12329) (#12340)

* Update plugin name

* Backup accessor for plugin name

* Add null check for plg_db

(cherry picked from commit d041e251d2)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]
2026-07-09 13:36:38 +10:00
committed by GitHub
co-authored by Oliver
parent 77c6f54bd9
commit 51859b7862
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -683,6 +683,11 @@ class PluginsRegistry:
if plg_key in configs: if plg_key in configs:
plg_db = configs[plg_key] plg_db = configs[plg_key]
# Handle edge case where PluginConfig has been created without a valid name
if plg_name and plg_db and plg_db.name != plg_name:
plg_db.name = plg_name
plg_db.save()
else: else:
plg_db = self.get_plugin_config(plg_key, plg_name) plg_db = self.get_plugin_config(plg_key, plg_name)
@@ -82,10 +82,12 @@ export default function PluginListTable() {
return; return;
} }
const name: string = record.name || record.meta?.human_name;
return ( return (
<Group justify='left'> <Group justify='left'>
<PluginIcon plugin={record} /> <PluginIcon plugin={record} />
<Text>{record.name}</Text> <Text size='sm'>{name}</Text>
</Group> </Group>
); );
} }