Skip to content

Commit

Permalink
core: frontend: extension manager? deal with possibly-null data
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Dec 5, 2022
1 parent 3d65c9f commit dfe2869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/frontend/src/views/ExtensionManagerView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export default Vue.extend({
}
},
getContainer(extension: InstalledExtensionData): RunningContainer[] | undefined {
return this.running_containers.filter(
return this.running_containers?.filter(
(container) => container.image === `${extension.docker}:${extension.tag}`,
)
},
Expand All @@ -357,7 +357,7 @@ export default Vue.extend({
timeout: 30000,
})
.then((response) => {
this.running_containers = response.data
this.running_containers = response.data ?? []
})
.catch((error) => {
notifier.pushBackError('RUNNING_CONTAINERS_FETCH_FAIL', error)
Expand Down

0 comments on commit dfe2869

Please sign in to comment.