fix(package-manager): available core updates cause an error in the dashboard

Fixes #3776

Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
Sami Mazouz 2023-04-15 16:21:45 +01:00
parent e8c867dcac
commit fab71f2d01
No known key found for this signature in database

View File

@ -226,7 +226,7 @@ export default class ControlSectionState {
version: app.data.settings.version,
icon: {
// @ts-ignore
backgroundImage: `url(${app.forum.attribute('baseUrl')}/assets/extensions/flarum-package-manager/flarum.svg`,
backgroundImage: `url(${app.data.resources[0]['attributes']['baseUrl']}/assets/extensions/flarum-package-manager/flarum.svg`,
},
extra: {
'flarum-extension': {