diff --git a/shared/helpers/connectionHelper.js b/shared/helpers/connectionHelper.js index 101633b..b6b33b9 100644 --- a/shared/helpers/connectionHelper.js +++ b/shared/helpers/connectionHelper.js @@ -73,7 +73,7 @@ const connect = async ({ connectionInfo, app }) => { const buckets = await clusterHelper.getAllBuckets({ cluster }); const selectedBucket = connectionInfo.couchbase_bucket; - if (selectedBucket && !buckets.includes(selectedBucket)) { + if (selectedBucket && !buckets?.map(bucket => bucket.name).includes(selectedBucket)) { throw new Error(`Bucket ${selectedBucket} doesn't exist`); }