fix(front-end): fix no index in products #53

Merged
JoeKung merged 3 commits from dev into main 2026-03-23 17:36:11 +01:00
Showing only changes of commit 95e60692c0 - Show all commits

View File

@@ -252,7 +252,9 @@ export class ProductDetailComponent {
this.setSelectedImageAssetId(null);
this.modelFile.set(null);
const isNotFound = error?.status === 404;
this.error.set(isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR');
this.error.set(
isNotFound ? 'SHOP.NOT_FOUND' : 'SHOP.LOAD_ERROR',
);
this.setResponseStatus(isNotFound ? 404 : 503);
if (this.shouldApplyFallbackSeo(error)) {
this.applyFallbackSeo();