Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.

Commit

Permalink
Merge inbound to mozilla-central. a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihai Alexandru Michis committed Sep 10, 2019
2 parents 0ef6713 + dd736a1 commit 588814f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions devtools/client/debugger/src/actions/breakpoints/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,10 @@ export function toggleBreakpointsAtLine(
export function removeAllBreakpoints(cx: Context) {
return async ({ dispatch, getState }: ThunkArgs) => {
const breakpointList = getBreakpointsList(getState());
dispatch({ type: "REMOVE_BREAKPOINTS" });

return Promise.all(
await Promise.all(
breakpointList.map(bp => dispatch(removeBreakpoint(cx, bp)))
);
dispatch({ type: "REMOVE_BREAKPOINTS" });
};
}

Expand Down

0 comments on commit 588814f

Please sign in to comment.