Skip to content

Commit

Permalink
Update file app/components/file-actions/FileActionsModal.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
juandjara committed Oct 8, 2023
1 parent f6da7ae commit 3a0fff8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/components/file-actions/FileActionsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ export type FileModalData = {
export default function FileActionsModal({
modalData,
onClose,
folders
folders,
redirect = true
}: {
modalData: FileModalData
onClose: () => void
folders: TreeItem[]
redirect: boolean
}) {
const { project } = useParams()
const actionURL = `/api/files/${project}`
const actionURL = `/api/files/${project}${redirect ? '?redirect=true' : ''}`
const fetcher = useFetcher()
const busy = fetcher.state !== 'idle'

Expand Down

0 comments on commit 3a0fff8

Please sign in to comment.