Skip to content

Commit 3eacf9b

Browse files
committed
Pass prevValues to RemoteOptionsContainer
1 parent e426ed6 commit 3eacf9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/connect-react/src/components/Control.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export function Control<T extends ConfigurableProps, U extends ConfigurableProp>
2424
} = props;
2525
const { queryDisabledIdx } = form;
2626
const {
27-
prop, idx,
27+
prop, idx, value,
2828
} = field;
2929
const app = "app" in field.extra
3030
? field.extra.app
3131
: undefined;
3232

3333
if (prop.remoteOptions || prop.type === "$.discord.channel") {
34-
return <RemoteOptionsContainer queryEnabled={queryDisabledIdx == null || queryDisabledIdx >= idx} />;
34+
return <RemoteOptionsContainer prevValues={value} queryEnabled={queryDisabledIdx == null || queryDisabledIdx >= idx} />;
3535
}
3636

3737
if ("options" in prop && prop.options) {

0 commit comments

Comments
 (0)