mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-07-30 15:42:01 +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 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 || []),
|
||||
|
Loading…
x
Reference in New Issue
Block a user