@c8y/ngx-components 1021.22.71 → 1021.22.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -169,12 +169,9 @@ class BrandingImportModalComponent {
169
169
  if (!versionDetails) {
170
170
  throw Error('No version details provided');
171
171
  }
172
- try {
173
- // verify if branding is already present
174
- await this.brandings.getBrandingOptionsForVersion();
175
- }
176
- catch (e) {
177
- // otherwise get started using branding
172
+ // verify if branding is already present
173
+ const { variants } = await this.brandings.loadBrandingVariants();
174
+ if (!variants?.length) {
178
175
  await this.brandings.getStartedUsingBranding();
179
176
  }
180
177
  const importedZipEntries = await firstValueFrom(this.zip.getEntries(file));