fardin-developer commented on code in PR #31809:
URL: https://github.com/apache/superset/pull/31809#discussion_r1913641830
##########
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:
You are right, I should edit in reducer but I have not seen anything like
dashboardLayoutReducer or something similar so I made afunction to make
DashboardLayout.past as an empty array.
--
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]