mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-04 13:59:09 +00:00
clear rundownState on modal close
This commit is contained in:
@@ -45,7 +45,12 @@ export default function SheetsModal(props: SheetsModalProps) {
|
|||||||
|
|
||||||
const sheetid = useRef<HTMLInputElement>(null);
|
const sheetid = useRef<HTMLInputElement>(null);
|
||||||
const worksheet = useRef<HTMLInputElement>(null);
|
const worksheet = useRef<HTMLInputElement>(null);
|
||||||
const handleClose = () => onClose();
|
const handleClose = () => {
|
||||||
|
setRundown(null);
|
||||||
|
setProject(null);
|
||||||
|
setUserFields(null);
|
||||||
|
onClose();
|
||||||
|
};
|
||||||
const handleClick = () => {
|
const handleClick = () => {
|
||||||
fileInputRef.current?.click();
|
fileInputRef.current?.click();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user