Skip to content

Commit

Permalink
Reverted embedding.ts prettier to resolve conflict. (#2365)
Browse files Browse the repository at this point in the history
  • Loading branch information
MillenniumFalconMechanic committed Aug 18, 2021
1 parent 65af86f commit 9103cad
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions client/src/actions/embedding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,19 @@ export const layoutChoiceAction: ActionCreator<
On layout choice, make sure we have selected all on the previous layout, AND the new
layout.
*/
const { annoMatrix: prevAnnoMatrix, obsCrossfilter: prevCrossfilter } =
getState();
const [annoMatrix, obsCrossfilter] = await _switchEmbedding(
prevAnnoMatrix,
prevCrossfilter,
newLayoutChoice
);
dispatch({
type: "set layout choice",
layoutChoice: newLayoutChoice,
obsCrossfilter,
annoMatrix,
});
};
const {
annoMatrix: prevAnnoMatrix,
obsCrossfilter: prevCrossfilter,
} = getState();
const [annoMatrix, obsCrossfilter] = await _switchEmbedding(
prevAnnoMatrix,
prevCrossfilter,
newLayoutChoice
);
dispatch({
type: "set layout choice",
layoutChoice: newLayoutChoice,
obsCrossfilter,
annoMatrix,
});
};

0 comments on commit 9103cad

Please sign in to comment.