diff --git a/src/components/DeleteRoomButton.tsx b/src/components/DeleteRoomButton.tsx index 83a9a72..40fd9f5 100644 --- a/src/components/DeleteRoomButton.tsx +++ b/src/components/DeleteRoomButton.tsx @@ -16,7 +16,7 @@ const resourceName = "rooms"; const DeleteRoomButton: React.FC = (props) => { const translate = useTranslate(); const [open, setOpen] = useState(false); - const [block, setBlock] = useState(true); + const [block, setBlock] = useState(false); const notify = useNotify(); const redirect = useRedirect(); @@ -78,7 +78,7 @@ const DeleteRoomButton: React.FC = (props) => { value={block} onChange={(event: React.ChangeEvent) => setBlock(event.target.checked)} label="resources.rooms.action.erase.fields.block" - defaultValue={true} + defaultValue={false} />