Skip to content

Commit

Permalink
fix: handling is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
palashgdev committed Oct 30, 2023
1 parent 6ad2337 commit 993a8d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/container/ListOfDashboard/ImportJSON/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ function ImportJSON({
setDashboardCreating(true);
const dashboardData = JSON.parse(editorValue) as DashboardData;

if (dashboardData.layout) {
if (dashboardData?.layout) {
dashboardData.layout = getUpdatedLayout(dashboardData.layout);
} else {
dashboardData.layout = [];
}

const response = await createDashboard({
Expand Down

0 comments on commit 993a8d5

Please sign in to comment.