geido commented on code in PR #31809:
URL: https://github.com/apache/superset/pull/31809#discussion_r1913552671
##########
superset-frontend/src/dashboard/actions/dashboardLayout.js:
##########
@@ -267,6 +267,13 @@ export function handleComponentDrop(dropResult) {
};
}
+export function resetDashboardPast() {
+ return (dispatch, getState) => {
+ const { dashboardLayout } = getState();
+ dashboardLayout.past = []; // Set `past` as an empty array
+ };
+}
Review Comment:
@fardin-developer I don't think you should edit the state here? Why not in
the reducers?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]