fix: Error choosing 'No access' as bulk import permission
This commit is contained in:
@@ -14,6 +14,7 @@ import InputSelectPermission from "~/components/InputSelectPermission";
|
|||||||
import LoadingIndicator from "~/components/LoadingIndicator";
|
import LoadingIndicator from "~/components/LoadingIndicator";
|
||||||
import Text from "~/components/Text";
|
import Text from "~/components/Text";
|
||||||
import useStores from "~/hooks/useStores";
|
import useStores from "~/hooks/useStores";
|
||||||
|
import { EmptySelectValue } from "~/types";
|
||||||
import { uploadFile } from "~/utils/files";
|
import { uploadFile } from "~/utils/files";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@@ -104,8 +105,8 @@ function DropToImport({ disabled, onSubmit, children, format }: Props) {
|
|||||||
<div>
|
<div>
|
||||||
<InputSelectPermission
|
<InputSelectPermission
|
||||||
value={permission}
|
value={permission}
|
||||||
onChange={(value: CollectionPermission) => {
|
onChange={(value: CollectionPermission | typeof EmptySelectValue) => {
|
||||||
setPermission(value);
|
setPermission(value === EmptySelectValue ? null : value);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Text as="span" type="secondary">
|
<Text as="span" type="secondary">
|
||||||
|
|||||||
Reference in New Issue
Block a user