Merge pull request #21 from navi-infra/infra-429
[infra-429] | Abhishek | Fix minor issues
This commit is contained in:
@@ -84,9 +84,9 @@ const Form = (props: any) => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const copyId = props.location.search.split("=")[1];
|
||||
const queryParams = new URLSearchParams(props.location.search);
|
||||
if(isCopy) {
|
||||
getCopy(copyId).then(res => {
|
||||
getCopy(Number(queryParams.get("copyId"))).then(res => {
|
||||
setFormInitData(res);
|
||||
});
|
||||
}
|
||||
@@ -123,7 +123,7 @@ const Form = (props: any) => {
|
||||
return (
|
||||
<div id="mainComponent">
|
||||
<MenuAppBar
|
||||
name={manifestIdParam && !isCopy ? "Edit Manifest" : "Create New Manifest File"}
|
||||
name={manifestIdParam ? "Edit Manifest" : "Create New Manifest File"}
|
||||
/>
|
||||
|
||||
<Grid container style={{ padding: "2em" }}>
|
||||
|
||||
Reference in New Issue
Block a user