diff --git a/src/views/SimproV2/CreatedProyek/.DialogHierarchy.js.swp b/src/views/SimproV2/CreatedProyek/.DialogHierarchy.js.swp new file mode 100644 index 0000000..426e022 Binary files /dev/null and b/src/views/SimproV2/CreatedProyek/.DialogHierarchy.js.swp differ diff --git a/src/views/SimproV2/CreatedProyek/DialogHierarchy.js b/src/views/SimproV2/CreatedProyek/DialogHierarchy.js index feeedf9..2bb089d 100644 --- a/src/views/SimproV2/CreatedProyek/DialogHierarchy.js +++ b/src/views/SimproV2/CreatedProyek/DialogHierarchy.js @@ -47,7 +47,7 @@ const DialogHierarchy = ({ openDialog, closeDialog, toggleDialog, idTask, proyek setLoading(true); getdataHierarchy(); } - }, [saveHierarchy, idTask, openDialog, closeDialog, openDialogFormGantt]) + }, [idTask, openDialog, closeDialog, openDialogFormGantt]) useEffect(() => { if (!openDialog) { diff --git a/src/views/SimproV2/CreatedProyek/ImportActivity/index.js b/src/views/SimproV2/CreatedProyek/ImportActivity/index.js index 4e20276..2e9212d 100644 --- a/src/views/SimproV2/CreatedProyek/ImportActivity/index.js +++ b/src/views/SimproV2/CreatedProyek/ImportActivity/index.js @@ -9,13 +9,13 @@ import './table.css'; import { BASE_OSPRO, ASSIGN_HR_PROJECT_SEARCH } from '../../../../const/ApiConst'; import { Prompt } from 'react-router-dom'; // -const config = { - headers: - { - Authorization: `Bearer ${token}`, - "Content-type": `application/json` - } -}; +//const config = { +// headers: +// { +// Authorization: `Bearer ${token}`, +// "Content-type": `application/json` +// } +//}; //const token = window.localStorage.getItem('token'); const token = localStorage.getItem("token"); const HEADER = { diff --git a/src/views/SimproV2/CreatedProyek/index.js b/src/views/SimproV2/CreatedProyek/index.js index f331f84..f2942ce 100644 --- a/src/views/SimproV2/CreatedProyek/index.js +++ b/src/views/SimproV2/CreatedProyek/index.js @@ -304,7 +304,7 @@ const CreatedProyek = ({ params, ...props }) => { const getDataProyek = async () => { let start = 0; let hierarchy = []; - hierarchy.push(JSON.parse(localStorage.getItem("hierarchy"))); + //hierarchy.push(JSON.parse(localStorage.getItem("hierarchy"))); if (currentPage !== 1 && currentPage > 1) { start = currentPage * rowsPerPage - rowsPerPage; }