mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-17 05:13:32 +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.clientSecret.complet) testAuthentication();
|
||||||
if (state.authenticate.complet) testSheetId();
|
if (state.authenticate.complet) testSheetId();
|
||||||
}
|
}
|
||||||
}, []);
|
}, [isOpen]);
|
||||||
|
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
setRundown(null);
|
setRundown(null);
|
||||||
|
|||||||
@@ -367,6 +367,7 @@ class Sheet {
|
|||||||
if (res.data.rundown.length < 1) {
|
if (res.data.rundown.length < 1) {
|
||||||
throw new Error(`Sheet: Could not find data to import in the worksheet`);
|
throw new Error(`Sheet: Could not find data to import in the worksheet`);
|
||||||
}
|
}
|
||||||
|
console.log(parseProject(dataFromSheet));
|
||||||
res.data.project = parseProject(dataFromSheet);
|
res.data.project = parseProject(dataFromSheet);
|
||||||
res.data.userFields = parseUserFields(dataFromSheet);
|
res.data.userFields = parseUserFields(dataFromSheet);
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user