Skip to content

Commit

Permalink
Fix render error when removing a dashboard parameter (#14999)
Browse files Browse the repository at this point in the history
  • Loading branch information
daltojohnso committed Mar 2, 2021
1 parent 1c6bf67 commit b0b6a16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/metabase/dashboard/components/Dashboard.jsx
Expand Up @@ -400,7 +400,10 @@ function Sidebars(props) {
<ParameterSidebar
parameter={parameter}
otherParameters={otherParameters}
remove={() => removeParameter(editingParameterId)}
remove={() => {
setEditingParameter(null);
removeParameter(editingParameterId);
}}
done={() => setEditingParameter(null)}
showAddParameterPopover={showAddParameterPopover}
setParameter={setParameter}
Expand Down

0 comments on commit b0b6a16

Please sign in to comment.