Skip to content

Commit 4a8ec21

Browse files
adfostbexsoft
andauthored
don't restart after every commit (#1204)
Co-authored-by: Alex <[email protected]>
1 parent e461a22 commit 4a8ec21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portal-ui/src/screens/Console/NotificationEndpoints/CustomForms/EditConfiguration.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ const EditConfiguration = ({
112112
`/api/v1/configs/${selectedConfiguration.configuration_id}`,
113113
payload
114114
)
115-
.then(() => {
115+
.then((res) => {
116116
setSaving(false);
117-
serverNeedsRestart(true);
117+
serverNeedsRestart(res.restart);
118118

119119
history.push("/settings");
120120
})

0 commit comments

Comments
 (0)