mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-01 08:31:59 +08:00
Merge pull request #1056 from pranshuchittora/pranshuchittora/fix/dashboard-widget-uuid
fix: dashboard uuid issue
This commit is contained in:
commit
1851e76bca
@ -6,6 +6,7 @@ import { useSelector } from 'react-redux';
|
|||||||
import { AppState } from 'store/reducers';
|
import { AppState } from 'store/reducers';
|
||||||
import AppReducer from 'types/reducer/app';
|
import AppReducer from 'types/reducer/app';
|
||||||
import DashboardReducer from 'types/reducer/dashboards';
|
import DashboardReducer from 'types/reducer/dashboards';
|
||||||
|
import { v4 as uuid } from 'uuid';
|
||||||
|
|
||||||
import menuItems, { ITEMS } from './menuItems';
|
import menuItems, { ITEMS } from './menuItems';
|
||||||
import { Card, Container, Text } from './styles';
|
import { Card, Container, Text } from './styles';
|
||||||
@ -38,7 +39,7 @@ function DashboardGraphSlider(): JSX.Element {
|
|||||||
|
|
||||||
await updateDashboard({
|
await updateDashboard({
|
||||||
data,
|
data,
|
||||||
generateWidgetId: selectedDashboard.uuid,
|
generateWidgetId: uuid(),
|
||||||
graphType: name,
|
graphType: name,
|
||||||
layout: [
|
layout: [
|
||||||
...(data.layout || []),
|
...(data.layout || []),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user