Skip to content

Commit

Permalink
Merge pull request #2258 from scottsut/dev
Browse files Browse the repository at this point in the history
fix(Storyboard): Get current datachart error
  • Loading branch information
scottsut authored Oct 13, 2023
2 parents 389f434 + f985d49 commit 1e6be99
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ export const setWidgetSampleDataAction =
const viewBoardState = rootState.board as BoardState;
const editBoardState = rootState.editBoard as EditBoardState;
const dataChartMap = viewBoardState.dataChartMap;
const curChart = dataChartMap[boardId][datachartId];
const curChart = dataChartMap[boardId]?.[datachartId];
if (!curChart) return;
if (curChart.viewId) return;
if (!curChart.config.sampleData) return;
Expand Down

0 comments on commit 1e6be99

Please sign in to comment.