Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Nov 12, 2023
1 parent e7aecb6 commit 48cf503
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/frontend/components/ResCountLineView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ onMounted(async () => {
counterLines.value = await K8sService.playService.counterControllerListAllCounterLine()
workloadCounterLines.value = {}
wks.forEach((k) => {
workloadCounterLines.value[k] = counterLines.value[k].toString().split(',')
if (counterLines.value[k])
workloadCounterLines.value[k] = counterLines.value[k].toString().split(',')
})
})
})
Expand Down

0 comments on commit 48cf503

Please sign in to comment.