fix: dashboard uuid issue

This commit is contained in:
Pranshu Chittora 2022-05-04 12:56:19 +05:30
parent 79475bde71
commit fa23050916
No known key found for this signature in database
GPG Key ID: 3A9E57A016CC0626

View File

@ -6,6 +6,7 @@ import { useSelector } from 'react-redux';
import { AppState } from 'store/reducers';
import AppReducer from 'types/reducer/app';
import DashboardReducer from 'types/reducer/dashboards';
import { v4 as uuid } from 'uuid';
import menuItems, { ITEMS } from './menuItems';
import { Card, Container, Text } from './styles';
@ -38,7 +39,7 @@ function DashboardGraphSlider(): JSX.Element {
await updateDashboard({
data,
generateWidgetId: selectedDashboard.uuid,
generateWidgetId: uuid(),
graphType: name,
layout: [
...(data.layout || []),