fix: handle schemas_allowed_for_csv_upload serde (#16038)

* fix: handle schemas_allowed_for_csv_upload serde

* Add migration
This commit is contained in:
Beto Dealmeida
2021-08-03 09:10:32 -07:00
committed by GitHub
parent 7c059cda39
commit ec22acb786
4 changed files with 104 additions and 6 deletions

View File

@@ -372,13 +372,17 @@ const ExtraOptions = ({
<input
type="text"
name="schemas_allowed_for_csv_upload"
value={db?.extra_json?.schemas_allowed_for_csv_upload || ''}
placeholder={t('Select one or multiple schemas')}
value={(
db?.extra_json?.schemas_allowed_for_csv_upload || []
).join(',')}
placeholder="schema1,schema2"
onChange={onExtraInputChange}
/>
</div>
<div className="helper">
{t('A list of schemas that CSVs are allowed to upload to.')}
{t(
'A comma-separated list of schemas that CSVs are allowed to upload to.',
)}
</div>
</StyledInputContainer>
<StyledInputContainer css={{ no_margin_bottom }}>