human and sidepannel bug fix
This commit is contained in:
@@ -64,7 +64,7 @@ const SidePannel: React.FC<SidePannelProps> = ({ setActiveTab, activeTab }) => {
|
|||||||
const handleResponse = (data: any) => {
|
const handleResponse = (data: any) => {
|
||||||
if (data.message === "Project created successfully") {
|
if (data.message === "Project created successfully") {
|
||||||
setLoadingProgress(1)
|
setLoadingProgress(1)
|
||||||
navigate(`/${data.data.projectId}`);
|
navigate(`/projects/${data.data.projectId}`);
|
||||||
}
|
}
|
||||||
projectSocket.off("v1-project:response:add", handleResponse); // Clean up
|
projectSocket.off("v1-project:response:add", handleResponse); // Clean up
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -397,7 +397,7 @@ function HumanMechanics() {
|
|||||||
<LabledDropdown
|
<LabledDropdown
|
||||||
label="Action Type"
|
label="Action Type"
|
||||||
defaultOption={activeOption}
|
defaultOption={activeOption}
|
||||||
options={["worker", "manufacture", "operator"]}
|
options={["worker", "manufacturer", "operator"]}
|
||||||
onSelect={handleSelectActionType}
|
onSelect={handleSelectActionType}
|
||||||
disabled={false}
|
disabled={false}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user