Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 28a83f2

Browse files
committed
Object.keys map -> Object.entries, rename k->outputIdAndProp.
1 parent e5dfa93 commit 28a83f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/actions/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,17 +567,17 @@ function updateOutput(
567567

568568
const {paths} = getState();
569569

570-
Object.keys(data.response).map(k => [k, data.response[k]]).forEach(([k, props]) => {
570+
Object.entries(data.response).forEach(([outputIdAndProp, props]) => {
571571
const observerUpdatePayload = {
572-
itempath: paths[k],
572+
itempath: paths[outputIdAndProp],
573573
props,
574574
source: 'response'
575575
};
576576
dispatch(updateProps(observerUpdatePayload));
577577

578578
dispatch(
579579
notifyObservers({
580-
id: k,
580+
id: outputIdAndProp,
581581
props: props,
582582
})
583583
);
@@ -592,7 +592,7 @@ function updateOutput(
592592
computePaths({
593593
subTree: observerUpdatePayload.props.children,
594594
startingPath: concat(
595-
paths[k],
595+
paths[outputIdAndProp],
596596
['props', 'children']
597597
),
598598
})

0 commit comments

Comments
 (0)