Skip to content

Commit

Permalink
fix: array upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-vm committed Feb 23, 2024
1 parent 98fb053 commit 17023a3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@ const ArrayInput: React.FC<ArrayInputItemProps> = React.memo(
[subItemSchema],
);

const options = useMemo(() => upstreamOptions[inputKey], []);
const options = useMemo(() => {
const upstreamKey = inputKey.replace("inputs.", "");
return upstreamOptions[upstreamKey];
}, [upstreamOptions]);

const isFromUpstream = useCallback(
(index: number) => {
Expand Down

0 comments on commit 17023a3

Please sign in to comment.