@asdp/ferryui 0.1.22-dev.9838 → 0.1.22-dev.9840
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.
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13120,11 +13120,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13120
13120
|
cargoItems: updatedCargoItems
|
|
13121
13121
|
});
|
|
13122
13122
|
},
|
|
13123
|
-
options: loadTypeOptions.
|
|
13124
|
-
(lt) => lt.commodityId === (getValues(
|
|
13125
|
-
`owners.${index}.cargo.${cargoIndex}.commodity`
|
|
13126
|
-
) || "")
|
|
13127
|
-
).map((lt) => ({
|
|
13123
|
+
options: loadTypeOptions.map((lt) => ({
|
|
13128
13124
|
value: lt.id.toString(),
|
|
13129
13125
|
label: `${lt.name} (${lt.unit?.name})`
|
|
13130
13126
|
})),
|
|
@@ -13150,7 +13146,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13150
13146
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13151
13147
|
);
|
|
13152
13148
|
const selectedLoadType = loadTypes.find(
|
|
13153
|
-
(loadType) => loadType.id === type
|
|
13149
|
+
(loadType) => loadType.id.toString() === type
|
|
13154
13150
|
);
|
|
13155
13151
|
if (!selectedLoadType) {
|
|
13156
13152
|
return /* @__PURE__ */ jsxs(Col, { md: 3, children: [
|
|
@@ -13339,9 +13335,9 @@ var CardVehicleOwnerForm = ({
|
|
|
13339
13335
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13340
13336
|
);
|
|
13341
13337
|
const selectedLoadType2 = loadTypes.find(
|
|
13342
|
-
(loadType) => loadType.id === type2
|
|
13338
|
+
(loadType) => loadType.id.toString() === type2
|
|
13343
13339
|
);
|
|
13344
|
-
return selectedLoadType2?.unit?.name
|
|
13340
|
+
return selectedLoadType2?.unit?.name;
|
|
13345
13341
|
})()
|
|
13346
13342
|
}
|
|
13347
13343
|
)
|