Exporting flows and templates from the Settings page works but generates a JS error 
### Expected Behavior

No JS error on the console.

### Actual Behaviour

When exporting flow or templates from the Settings page, the export works but there is exceptions in the JS console.

![image](https://github.com/kestra-io/kestra/assets/1819009/92b1707f-db01-487f-a1e6-eb3ef2fb50a7)


### Steps To Reproduce

_No response_

### Environment Information

- Kestra Version: 0.9.0-SNAPSHOT
- Operating System (OS / Docker / Kubernetes):
- Java Version (If not docker):


### Example flow

_No response_
ui/src/components/settings/Settings.vue
ui/src/components/settings/Settings.vue
diff --git a/ui/src/components/settings/Settings.vue b/ui/src/components/settings/Settings.vue
index 6ed9e248ba..bf80a6d923 100644
--- a/ui/src/components/settings/Settings.vue
+++ b/ui/src/components/settings/Settings.vue
@@ -153,7 +153,21 @@
                 this.editorDocumentation = value;
                 this.$toast().saved();
 
-            }
+            },
+            exportFlows() {
+                return this.$store
+                    .dispatch("flow/exportFlowByQuery", {})
+                    .then(_ => {
+                        this.$toast().success(this.$t("flows exported"));
+                    })
+            },
+            exportTemplates() {
+                return this.$store
+                    .dispatch("template/exportTemplateByQuery", {})
+                    .then(_ => {
+                        this.$toast().success(this.$t("templates exported"));
+                    })
+            },
         },
         computed: {
             ...mapGetters("core", ["guidedProperties"]),
@@ -187,20 +201,6 @@
             canReadTemplates() {
                 return this.user && this.user.isAllowed(permission.TEMPLATE, action.READ);
             },
-            exportFlows() {
-                return this.$store
-                    .dispatch("flow/exportFlowByQuery", {})
-                    .then(_ => {
-                        this.$toast().success(this.$t("flows exported"));
-                    })
-            },
-            exportTemplates() {
-                return this.$store
-                    .dispatch("template/exportTemplateByQuery", {})
-                    .then(_ => {
-                        this.$toast().success(this.$t("templates exported"));
-                    })
-            },
         }
     };
 </script>
