Skip to content

Commit cd494fa

Browse files
committed
fix: building multiple themes
1 parent 79c1e46 commit cd494fa

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

  • src/Resources
    • app/administration/src/module/frosh-tools/component/frosh-tools-tab-cache
    • public/administration/js

src/Resources/app/administration/src/module/frosh-tools/component/frosh-tools-tab-cache/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,12 @@ Component.register('frosh-tools-tab-cache', {
9494
for (let salesChannel of salesChannels) {
9595
const theme = salesChannel.extensions.themes.first();
9696

97-
await this.themeService.assignTheme(theme.id, salesChannel.id);
98-
this.createNotificationSuccess({
99-
message: `${salesChannel.translated.name}` + ': ' + this.$tc('frosh-tools.themeCompiled')
100-
})
97+
if (theme.id) {
98+
await this.themeService.assignTheme(theme.id, salesChannel.id);
99+
this.createNotificationSuccess({
100+
message: `${salesChannel.translated.name}` + ': ' + this.$tc('frosh-tools.themeCompiled')
101+
})
102+
}
101103
}
102104

103105
this.isLoading = false;

src/Resources/public/administration/js/frosh-tools.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)