diff --git a/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx b/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx index 6926db85bee..eb595c204dd 100644 --- a/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx +++ b/frontend/src/container/ListOfDashboard/ImportJSON/index.tsx @@ -82,9 +82,8 @@ function ImportJSON({ const dashboardData = JSON.parse(editorValue) as DashboardData; - // Add validation for uuid - if (dashboardData.uuid !== undefined && dashboardData.uuid.trim() === '') { - // silently remove uuid if it is empty + // Remove uuid from the dashboard data, in all cases - empty, duplicate or any valid not duplicate uuid + if (dashboardData.uuid !== undefined) { delete dashboardData.uuid; }