Skip to content

Commit

Permalink
fix(ui): icons from local instance have priority over the api one
Browse files Browse the repository at this point in the history
close #1935
  • Loading branch information
tchiotludo committed Aug 24, 2023
1 parent 894a312 commit 3a0360c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ui/src/stores/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ export default {
this.$http.get("/api/v1/plugins/icons", {}),
this.dispatch("api/pluginIcons")
]).then(responses => {
const icons = _merge(responses[0].data, responses[1].data);
const icons = responses[0].data;

for (const [key, plugin] of Object.entries(responses[1].data)) {
if (icons[key] === undefined) {
icons[key] = plugin
}
}

commit("setIcons", icons);

return icons;
Expand Down

0 comments on commit 3a0360c

Please sign in to comment.