+ Saving changes will drop the existing wrapper and recreate it. Foreign servers and tables + will be recreated, and dependent objects like functions or views that reference those + tables may need to be updated manually afterwards. +
+Are you sure you want to continue?
+This action cannot be undone.
diff --git a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx index 9388f689dfd9b..37a1df3714730 100644 --- a/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx +++ b/apps/studio/components/interfaces/Storage/VectorBuckets/VectorBucketDetails/index.tsx @@ -1,8 +1,8 @@ import { MoreVertical, Search, Trash2 } from 'lucide-react' import Link from 'next/link' import { useRouter } from 'next/router' -import { parseAsBoolean, useQueryState } from 'nuqs' -import { useRef, useState } from 'react' +import { parseAsBoolean, parseAsString, useQueryState } from 'nuqs' +import { useState } from 'react' import { useParams } from 'common' import { @@ -15,7 +15,6 @@ import { import AlertError from 'components/ui/AlertError' import { useVectorBucketQuery } from 'data/storage/vector-bucket-query' import { useVectorBucketsIndexesQuery } from 'data/storage/vector-buckets-indexes-query' -import { handleErrorOnDelete, useQueryStateWithSelect } from 'hooks/misc/useQueryStateWithSelect' import { SqlEditor, TableEditor } from 'icons' import { Button, @@ -54,14 +53,15 @@ export const VectorBucketDetails = () => { const { ref: projectRef, bucketId } = useParams() const { data: _bucket, isSuccess } = useSelectedVectorBucket() - // Track the ID being deleted to exclude it from error checking - const deletingTableIdRef = useRef