fix: while saving the widget, queryData(response of the query) is not send over the backend as it is always calc over the frontend (#323)

This commit is contained in:
pal-sig 2021-10-11 16:21:44 +05:30 committed by GitHub
parent 2c1c0ceea6
commit 050da9a2a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,15 @@ export const SaveDashboard = ({
opacity: updatedopacity,
title: updatedTitle,
timePreferance: updatedtimePreferance,
queryData: {
...selectedWidget.queryData,
data: [
...selectedWidget.queryData.data.map((e) => ({
...e,
queryData: [],
})),
],
},
},
...afterWidget,
],