mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 12:25:05 +03:00
revert
This commit is contained in:
1 parent
f6748a0696
commit
db2bc6d5f6
1 file changed
+7
-7
@@ -1,25 +1,25 @@
|
||||
import { AIEditor } from 'components/ui/AIEditor'
|
||||
import { AnimatePresence, motion } from 'framer-motion'
|
||||
import { Edit, File, Plus, Trash } from 'lucide-react'
|
||||
import { useEffect, useState } from 'react'
|
||||
import { toast } from 'sonner'
|
||||
|
||||
import { AIEditor } from 'components/ui/AIEditor'
|
||||
import {
|
||||
Button,
|
||||
cn,
|
||||
ContextMenu_Shadcn_,
|
||||
ContextMenuContent_Shadcn_,
|
||||
ContextMenuItem_Shadcn_,
|
||||
ContextMenuSeparator_Shadcn_,
|
||||
ContextMenuTrigger_Shadcn_,
|
||||
flattenTree,
|
||||
ContextMenu_Shadcn_,
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
TooltipTrigger,
|
||||
TreeView,
|
||||
TreeViewItem,
|
||||
cn,
|
||||
flattenTree,
|
||||
} from 'ui'
|
||||
import { FileAction, TreeChildData, type FileData } from './FileExplorerAndEditor.types'
|
||||
|
||||
import { FileAction, type FileData, TreeChildData } from './FileExplorerAndEditor.types'
|
||||
import {
|
||||
extractZipFile,
|
||||
getFileAction,
|
||||
@@ -335,7 +335,7 @@ export const FileExplorerAndEditor = ({
|
||||
})
|
||||
|
||||
if (!selectedFileId && files.length > 0) setSelectedFileId(files[0].id)
|
||||
}, [files, selectedFileId, setSelectedFileId])
|
||||
}, [files])
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in new issue
Block a user