minor frontend changes to discard responses if route changed

This commit is contained in:
abdulmohsen
2024-08-02 21:14:40 +03:00
parent 8d0746f1f2
commit bf2d822f50
26 changed files with 217 additions and 94 deletions

View File

@@ -312,6 +312,9 @@ const addVariable = async () => {
}
const json = await response.json()
if (useRoute().name !== 'env') {
return
}
if (200 !== response.status) {
notification('error', 'Error', `${json.error.code}: ${json.error.message}`, 5000)