diff options
author | Anderson Shindy Oki <[email protected]> | 2024-11-25 16:09:23 +0900 |
---|---|---|
committer | Anderson Shindy Oki <[email protected]> | 2024-11-26 15:24:53 +0900 |
commit | 069a31ca2321cf9c8c75167b38a41c61ff224fde (patch) | |
tree | 5998cfdf46dd429f16486f60caa234b9be009843 | |
parent | 49e70dadf08fd385759510d6d42225866e16bb8d (diff) | |
download | bazarr-feature/add-provider-validation.tar.gz bazarr-feature/add-provider-validation.zip |
Fixed duplicate keusfeature/add-provider-validation
-rw-r--r-- | frontend/src/pages/Settings/Providers/components.tsx | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/frontend/src/pages/Settings/Providers/components.tsx b/frontend/src/pages/Settings/Providers/components.tsx index 4b14b17cc..d50f0c93c 100644 --- a/frontend/src/pages/Settings/Providers/components.tsx +++ b/frontend/src/pages/Settings/Providers/components.tsx @@ -1,4 +1,5 @@ import { + Fragment, FunctionComponent, useCallback, useMemo, @@ -288,52 +289,48 @@ const ProviderTool: FunctionComponent<ProviderToolProps> = ({ switch (value.type) { case "text": elements.push( - <> + <Fragment key={BuildKey(itemKey, key)}> <Text - key={BuildKey(itemKey, key)} label={label} settingKey={`settings-${itemKey}-${key}`} ></Text> {error} - </>, + </Fragment>, ); return; case "password": elements.push( - <> + <Fragment key={BuildKey(itemKey, key)}> <Password - key={BuildKey(itemKey, key)} label={label} settingKey={`settings-${itemKey}-${key}`} ></Password> {error} - </>, + </Fragment>, ); return; case "switch": elements.push( - <> + <Fragment key={BuildKey(itemKey, key)}> <Check - key={key} inline label={label} settingKey={`settings-${itemKey}-${key}`} ></Check> {error} - </>, + </Fragment>, ); return; case "select": elements.push( - <> + <Fragment key={BuildKey(itemKey, key)}> <GlobalSelector - key={key} label={label} settingKey={`settings-${itemKey}-${key}`} options={options} ></GlobalSelector> {error} - </>, + </Fragment>, ); return; case "testbutton": @@ -343,14 +340,13 @@ const ProviderTool: FunctionComponent<ProviderToolProps> = ({ return; case "chips": elements.push( - <> + <Fragment key={BuildKey(itemKey, key)}> <Chips - key={key} label={label} settingKey={`settings-${itemKey}-${key}`} ></Chips> {error} - </>, + </Fragment>, ); return; default: |