Skip to content

Commit ffc0afe

Browse files
committed
fix(ApplicationsCenter): refactor variable naming for clarity in module extraction
1 parent 38deb40 commit ffc0afe

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

core/ui/src/views/ApplicationsCenter.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -744,25 +744,25 @@ export default {
744744
745745
// extract installed modules
746746
const extractedModules = [];
747-
for (const obj of modules) {
748-
const updates = obj.updates;
749-
for (const item of obj.installed) {
747+
for (const moduleData of modules) {
748+
const updates = moduleData.updates;
749+
for (const item of moduleData.installed) {
750750
// look for updates for this item
751751
const updateEntry = updates.find((u) => u.id === item.id);
752752
// if found, merge data from updateEntry into item
753-
const source = updateEntry || item;
753+
const installedData = updateEntry || item;
754754
extractedModules.push({
755-
id: source.id || "",
755+
id: installedData.id || "",
756756
// Use module logo URL if available, else fallback to instance logo later in the template
757-
logo: obj.logo && obj.logo.startsWith("http") ? obj.logo : "",
758-
module: obj.name || "", // we want a humanized module name
759-
node: source.node || "",
760-
node_ui_name: source.node_ui_name || "",
761-
ui_name: source.ui_name || "",
762-
ui_note: source.ui_note || "",
763-
version: source.version || "",
764-
update: source.update || "",
765-
appInfoData: obj, // needed for clone/move/info modals
757+
logo: moduleData.logo && moduleData.logo.startsWith("http") ? moduleData.logo : "",
758+
module: moduleData.name || "", // we want a humanized module name
759+
node: installedData.node || "",
760+
node_ui_name: installedData.node_ui_name || "",
761+
ui_name: installedData.ui_name || "",
762+
ui_note: installedData.ui_note || "",
763+
version: installedData.version || "",
764+
update: installedData.update || "",
765+
appInfoData: moduleData, // needed for clone/move/info modals
766766
});
767767
}
768768
}

0 commit comments

Comments
 (0)