Skip to content

Commit 20eb608

Browse files
committed
fix(Settings GUI.Package Manager): Change input type for container.accessors.${accessorId}.ISAUrls to an array of strings
1 parent 3f35590 commit 20eb608

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

packages/webui/src/client/ui/Settings/Studio/PackageManager/AccessorTableRow.tsx

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -411,14 +411,21 @@ export function AccessorTableRow({
411411
itemKey={`container.accessors.${accessorId}.ISAUrls`}
412412
overrideHelper={overrideHelper}
413413
>
414-
{(value, handleUpdate) => (
415-
<TextInputControl
416-
modifiedClassName="bghl"
417-
classNames="input text-input input-l"
418-
value={value}
419-
handleUpdate={handleUpdate}
420-
/>
421-
)}
414+
{(value, handleUpdate) => {
415+
// Convert array of strings into comma-separated string for the input:
416+
const strValue = Array.isArray(value) ? value.join(', ') : value
417+
return (
418+
<TextInputControl
419+
modifiedClassName="bghl"
420+
classNames="input text-input input-l"
421+
value={strValue}
422+
handleUpdate={(value: string) => {
423+
// Convert comma-separated string into array of strings
424+
handleUpdate(value.split(',').map((s) => s.trim()))
425+
}}
426+
/>
427+
)
428+
}}
422429
</LabelAndOverrides>
423430
<LabelAndOverrides
424431
label={t('Quantel Zone ID')}

0 commit comments

Comments
 (0)