Filter out an S3 datasources which contain custom endpoints when selecting the datsource to use with the S3 upload component

This commit is contained in:
Andrew Kingston 2022-01-24 15:19:21 +00:00
parent f3d1035e23
commit 8284e1d76c
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
export let value = null
$: dataSources = $datasources.list
.filter(ds => ds.source === "S3")
.filter(ds => ds.source === "S3" && !ds.config?.endpoint)
.map(ds => ({
label: ds.name,
value: ds._id,