mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-16 15:45:56 +08:00
fix: clone dashboard panel intermittent issue (#5096)
This commit is contained in:
parent
1328f05d78
commit
c913c8bf20
@ -160,7 +160,11 @@ function WidgetGraphComponent({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
onSuccess: () => {
|
onSuccess: (updatedDashboard) => {
|
||||||
|
if (setLayouts) setLayouts(updatedDashboard.payload?.data?.layout || []);
|
||||||
|
if (setSelectedDashboard && updatedDashboard.payload) {
|
||||||
|
setSelectedDashboard(updatedDashboard.payload);
|
||||||
|
}
|
||||||
notifications.success({
|
notifications.success({
|
||||||
message: 'Panel cloned successfully, redirecting to new copy.',
|
message: 'Panel cloned successfully, redirecting to new copy.',
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user