mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: project details.
This commit is contained in:
@@ -17,12 +17,12 @@ function ProjectTabs({
|
||||
changePageTitle,
|
||||
}) {
|
||||
const {
|
||||
state: { original },
|
||||
state: { name },
|
||||
} = useLocation();
|
||||
|
||||
React.useEffect(() => {
|
||||
changePageTitle(original.name);
|
||||
}, [changePageTitle, original]);
|
||||
changePageTitle(name);
|
||||
}, [changePageTitle, name]);
|
||||
|
||||
return (
|
||||
<ProjectDetailProvider>
|
||||
|
||||
@@ -53,7 +53,7 @@ function ProjectsDataTable({
|
||||
// Handle cell click.
|
||||
const handleCellClick = ({ row: { original } }) => {
|
||||
return history.push(`/projects/${original?.id}/details`, {
|
||||
original,
|
||||
name: original.name,
|
||||
});
|
||||
};
|
||||
|
||||
@@ -76,7 +76,7 @@ function ProjectsDataTable({
|
||||
// Handle view detail project.
|
||||
const handleViewDetailProject = (project) => {
|
||||
return history.push(`/projects/${project.id}/details`, {
|
||||
original: project.name,
|
||||
name: project.name,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user