clear rundownState on modal close

This commit is contained in:
arc-alex
2023-11-18 21:01:32 +01:00
parent 65efebe180
commit 785695c01c
@@ -45,7 +45,12 @@ export default function SheetsModal(props: SheetsModalProps) {
const sheetid = useRef<HTMLInputElement>(null);
const worksheet = useRef<HTMLInputElement>(null);
const handleClose = () => onClose();
const handleClose = () => {
setRundown(null);
setProject(null);
setUserFields(null);
onClose();
};
const handleClick = () => {
fileInputRef.current?.click();
};