File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -688,9 +688,9 @@ class Vehicle {
688688 vehicle . id = data . id || "" ;
689689 vehicle . type = data . type || "vehicles" ;
690690 vehicle . relationships = data . relationships || { } ;
691- vehicle . attributes . registration = vehicle . relationships . author ?. data ?. id || "" ;
692- vehicle . attributes . vin = vehicle . relationships . form ?. data ?. id || "" ;
693- vehicle . attributes . description = vehicle . relationships . form_version ?. data ?. id || "" ;
691+ vehicle . attributes . registration = data . attributes . registration || "" ;
692+ vehicle . attributes . vin = data . attributes . vin || "" ;
693+ vehicle . attributes . description = data . attributes . description || "" ;
694694 vehicle . meta = data . meta || { } ;
695695 vehicle . links = data . links || { } ;
696696 }
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ export class Vehicle {
1818 vehicle . id = data . id || '' ;
1919 vehicle . type = data . type || 'vehicles' ;
2020 vehicle . relationships = data . relationships || { } ;
21- vehicle . attributes . registration = vehicle . relationships . author ?. data ?. id || '' ;
22- vehicle . attributes . vin = vehicle . relationships . form ?. data ?. id || '' ;
23- vehicle . attributes . description = vehicle . relationships . form_version ?. data ?. id || '' ;
21+ vehicle . attributes . registration = data . attributes . registration || '' ;
22+ vehicle . attributes . vin = data . attributes . vin || '' ;
23+ vehicle . attributes . description = data . attributes . description || '' ;
2424 vehicle . meta = data . meta || { } ;
2525 vehicle . links = data . links || { } ;
2626 }
You can’t perform that action at this time.
0 commit comments