mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix(db): make databases.agent_id and agent_database_id nullable for soft-delete
This commit is contained in:
@@ -23,7 +23,7 @@ export const DatabaseCard = (props: DatabaseCardProps) => {
|
||||
const handleCopy = (e: React.MouseEvent) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
navigator.clipboard.writeText(database.agentDatabaseId);
|
||||
navigator.clipboard.writeText(database.agentDatabaseId ?? "");
|
||||
setIsCopied(true);
|
||||
setTimeout(() => setIsCopied(false), 2000);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user