Non-admins do not have a checklist property, so handle it correctly in AppsModel

This commit is contained in:
Johannes Zellner
2025-06-02 22:20:51 +02:00
parent 9289d80e32
commit ebba516603
+7 -2
View File
@@ -156,8 +156,13 @@ function create() {
app.manifest.postInstallMessage = text.trim();
}
for (const key of Object.keys(app.checklist)) {
app.checklist[key].message = expandTemplateVars(app.checklist[key].message);
// only admins have this property
if (app.checklist) {
for (const key of Object.keys(app.checklist)) {
app.checklist[key].message = expandTemplateVars(app.checklist[key].message);
}
} else {
app.checklist = {};
}
return app;