Skip to content

Commit

Permalink
Merge pull request #36 from beclab/fix/i18n
Browse files Browse the repository at this point in the history
fix: update key
  • Loading branch information
icebergtsn authored Sep 25, 2024
2 parents b720604 + a327340 commit 45da3ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/stores/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const useAppStore = defineStore('app', {
}
}
}
} else if (!!appData['metadata']) {
} else if (key === 'metadata') {
for (const arrayKey in appData['metadata']) {
if (
Object.prototype.hasOwnProperty.call(
Expand All @@ -109,7 +109,7 @@ export const useAppStore = defineStore('app', {
}
}
}
} else if (!!appData['spec']) {
} else if (key == 'spec') {
for (const arrayKey in appData['spec']) {
if (
Object.prototype.hasOwnProperty.call(
Expand Down

0 comments on commit 45da3ff

Please sign in to comment.