Skip to content

Commit

Permalink
Check if operation_tree has data before access (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelshin authored May 8, 2023
1 parent a11ddf7 commit 520b3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepview-explore/react-ui/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function App() {

const processAnalysisState = function (state) {
setAnalysisState(state);
if (state.breakdown) {
if (state.breakdown && state.breakdown.operation_tree) {
let operation_tree = state.breakdown.operation_tree;
let { coarse, fine } = getTraceByLevel(operation_tree);
setTimeBreakdown({
Expand Down

0 comments on commit 520b3a5

Please sign in to comment.