"git@developer.sourcefind.cn:OpenDAS/torch-sparce.git" did not exist on "704ad420f61f3426da0513ac09c9114dacda7fac"
Unverified Commit 1800646c authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

fix update experiment params issue on view mode (#3546)

parent 67e23897
...@@ -114,6 +114,7 @@ export const EditExperimentParam = (): any => { ...@@ -114,6 +114,7 @@ export const EditExperimentParam = (): any => {
if (res.status === 200) { if (res.status === 200) {
showMessageInfo(`Successfully updated experiment's ${field}`, 'success'); showMessageInfo(`Successfully updated experiment's ${field}`, 'success');
changeMaxDurationUnit(unit); changeMaxDurationUnit(unit);
updateOverviewPage();
} }
} catch (error) { } catch (error) {
if (error.response && error.response.data.error) { if (error.response && error.response.data.error) {
...@@ -128,7 +129,6 @@ export const EditExperimentParam = (): any => { ...@@ -128,7 +129,6 @@ export const EditExperimentParam = (): any => {
setEditValInput(defaultVal); setEditValInput(defaultVal);
} }
showPencil(); showPencil();
updateOverviewPage();
} }
function cancelEdit(): void { function cancelEdit(): void {
......
...@@ -78,7 +78,7 @@ $margin: 24px; ...@@ -78,7 +78,7 @@ $margin: 24px;
} }
&-dropdown { &-dropdown {
width: 65px; width: 60px;
display: inline-block; display: inline-block;
position: relative; position: relative;
top: 13px; top: 13px;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment