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

@@ -388,6 +388,9 @@ useHead({title: 'Backends - Edit: ' + id})
const loadContent = async () => {
const content = await request(`/backend/${id}`)
let json = await content.json()
if (useRoute().name !== 'backend-backend-edit') {
return
}
if (!json?.options || typeof json.options !== 'object') {
json.options = {}