appinfo: fix 'from_catalog' dict access for custom apps

This commit is contained in:
axolotle 2023-09-29 17:04:04 +02:00
parent 357e41292e
commit 3b33196df5

View file

@ -422,7 +422,7 @@ export default {
links: [ links: [
['license', `https://spdx.org/licenses/${app.manifest.upstream.license}`], ['license', `https://spdx.org/licenses/${app.manifest.upstream.license}`],
...['website', 'admindoc', 'userdoc', 'code'].map((key) => ([key, app.manifest.upstream[key]])), ...['website', 'admindoc', 'userdoc', 'code'].map((key) => ([key, app.manifest.upstream[key]])),
['package', app.from_catalog.git.url], ['package', app.from_catalog.git?.url],
['forum', `https://forum.yunohost.org/tag/${app.manifest.id}`] ['forum', `https://forum.yunohost.org/tag/${app.manifest.id}`]
].filter(([key, val]) => !!val), ].filter(([key, val]) => !!val),
doc: { doc: {