Skip to content

Commit c731ed7

Browse files
committed
remove duplication
1 parent 38c752c commit c731ed7

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/libs/actions/OnyxDerived/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ function init() {
8181
context.areAllConnectionsSet = areAllConnectionsSet;
8282
context.sourceValues = sourceKey && sourceValue !== undefined ? {[sourceKey]: sourceValue} : undefined;
8383

84-
// If we got a source key and value, add it to the sourceValues object
85-
if (sourceKey && sourceValue !== undefined) {
86-
context.sourceValues = {
87-
[sourceKey]: sourceValue,
88-
};
89-
}
9084
// @ts-expect-error TypeScript can't confirm the shape of dependencyValues matches the compute function's parameters
9185
const newDerivedValue = compute(dependencyValues, context);
9286
Log.info(`[OnyxDerived] updating value for ${key} in Onyx`);

0 commit comments

Comments
 (0)