Skip to content

Commit 05c4244

Browse files
committed
fix: specifications links in chronological cars list
1 parent 3e03fa5 commit 05c4244

File tree

3 files changed

+60
-60
lines changed

3 files changed

+60
-60
lines changed

package-lock.json

Lines changed: 56 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"object-typed": "^1.0.0",
5353
"sprintf-js": "^1.1.2",
5454
"tslib": "^2.5.0",
55-
"typescript": ">=5.4.0 && <5.8.0",
55+
"typescript": ">=5.7.0",
5656
"url-parse": "^1.5.10",
5757
"zone.js": "^0.15.0"
5858
},

src/app/catalogue/cars/cars.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ export class CatalogueCarsComponent {
159159
new ItemsRequest({
160160
fields: new ItemFields({
161161
acceptedPicturesCount: true,
162-
hasSpecs: true,
163-
hasChildSpecs: true,
164162
canEditSpecs: true,
165163
categories: new ItemsRequest({
166164
fields: new ItemFields({nameHtml: true}),
@@ -171,6 +169,8 @@ export class CatalogueCarsComponent {
171169
engineVehicles: new ItemsRequest({
172170
fields: new ItemFields({nameHtml: true, route: true}),
173171
}),
172+
hasChildSpecs: true,
173+
hasSpecs: true,
174174
hasText: true,
175175
nameDefault: true,
176176
nameHtml: true,
@@ -245,7 +245,7 @@ export class CatalogueCarsComponent {
245245
},
246246
produced: item.produced?.value,
247247
producedExactly: item.producedExactly,
248-
specsRouterLink: item.route && (item.hasSpecs || item.hasChildSpecs) ? item.route.concat(['specifications']) : null,
248+
specsRouterLink: item.specsRoute && (item.hasSpecs || item.hasChildSpecs) ? item.specsRoute : null,
249249
};
250250
});
251251

0 commit comments

Comments
 (0)