Skip to content

Commit

Permalink
Merge pull request #579 from wri/release/queenly-queenwood-hotfix-202…
Browse files Browse the repository at this point in the history
…4-10-22

[RELEASE] Queenly Queenwood Hotfix 2024-10-22
  • Loading branch information
roguenet authored Oct 23, 2024
2 parents dfe7a10 + eb4b5df commit 3eee87f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/elements/Inputs/FileInput/RHFFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
usePostV2FileUploadMODELCOLLECTIONUUID,
usePutV2FilesUUID
} from "@/generated/apiComponents";
import { getCurrentPathEntity } from "@/helpers/entity";
import { UploadedFile } from "@/types/common";
import { toArray } from "@/utils/array";
import { getErrorMessages } from "@/utils/errors";
Expand Down Expand Up @@ -243,13 +242,11 @@ const RHFFileInput = ({

return (
<FileInput
{...fileInputProps}
files={files}
{...(isPhotosAndVideo && {
previewAsTable: true,
descriptionInput: t("drag and drop or browse your device"),
description: t(
`if operations have begun, please upload images or videos of this specific ${getCurrentPathEntity()}`
),
variant: VARIANT_FILE_INPUT_MODAL_ADD_IMAGES_WITH_MAP
})}
onDelete={onDeleteFile}
Expand Down

0 comments on commit 3eee87f

Please sign in to comment.