-
+
Your Apps
+ {#await promise}
+
+
+
+ {:then apps}
+
-
- {#each apps as app}
-
- {/each}
+
+
+ {#each apps as app}
+
+ {/each}
+
-
+ {:catch err}
+
{err}
+ {/await}
diff --git a/packages/server/src/api/controllers/templates.js b/packages/server/src/api/controllers/templates.js
index c9750dee6f..c7be43b4e3 100644
--- a/packages/server/src/api/controllers/templates.js
+++ b/packages/server/src/api/controllers/templates.js
@@ -28,7 +28,7 @@ exports.downloadTemplate = async function(ctx) {
}
exports.exportTemplateFromApp = async function(ctx) {
- const { appId, instanceId } = ctx.user.appId
+ const { appId, instanceId } = ctx.user
const { templateName } = ctx.request.body
await exportTemplateFromApp({