Skip to content

Commit

Permalink
Robert Austin review: add comments to reducer
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Kimmel committed Apr 3, 2020
1 parent ae79f32 commit 96394a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { uniquePidForProcess } from '../models/process_event';
* Despite the name "generator", this function is entirely determinant
* (i.e. it will return the same html id given the same prefix 'resolverNode'
* and nodeId)
*/
*/
const resolverNodeIdGenerator = htmlIdGenerator('resolverNode');

const uiReducer: Reducer<ResolverUIState, ResolverAction> = (
Expand All @@ -37,7 +37,7 @@ const uiReducer: Reducer<ResolverUIState, ResolverAction> = (
* This action has a process payload (instead of a processId), so we use
* `uniquePidForProcess` and `resolverNodeIdGenerator` to resolve the determinant
* html id of the node being brought into view.
*/
*/
const processNodeId = resolverNodeIdGenerator(uniquePidForProcess(action.payload.process));
return {
...uiState,
Expand Down

0 comments on commit 96394a8

Please sign in to comment.