mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 07:28:01 +00:00
useEffect on is open
This commit is contained in:
@@ -74,7 +74,7 @@ export default function SheetsModal(props: SheetsModalProps) {
|
||||
if (state.clientSecret.complet) testAuthentication();
|
||||
if (state.authenticate.complet) testSheetId();
|
||||
}
|
||||
}, []);
|
||||
}, [isOpen]);
|
||||
|
||||
const handleClose = () => {
|
||||
setRundown(null);
|
||||
|
||||
@@ -367,6 +367,7 @@ class Sheet {
|
||||
if (res.data.rundown.length < 1) {
|
||||
throw new Error(`Sheet: Could not find data to import in the worksheet`);
|
||||
}
|
||||
console.log(parseProject(dataFromSheet));
|
||||
res.data.project = parseProject(dataFromSheet);
|
||||
res.data.userFields = parseUserFields(dataFromSheet);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user