@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.js
CHANGED
|
@@ -13129,11 +13129,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13129
13129
|
cargoItems: updatedCargoItems
|
|
13130
13130
|
});
|
|
13131
13131
|
},
|
|
13132
|
-
options: loadTypeOptions.
|
|
13133
|
-
(lt) => lt.commodityId === (getValues(
|
|
13134
|
-
`owners.${index}.cargo.${cargoIndex}.commodity`
|
|
13135
|
-
) || "")
|
|
13136
|
-
).map((lt) => ({
|
|
13132
|
+
options: loadTypeOptions.map((lt) => ({
|
|
13137
13133
|
value: lt.id.toString(),
|
|
13138
13134
|
label: `${lt.name} (${lt.unit?.name})`
|
|
13139
13135
|
})),
|
|
@@ -13159,7 +13155,7 @@ var CardVehicleOwnerForm = ({
|
|
|
13159
13155
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13160
13156
|
);
|
|
13161
13157
|
const selectedLoadType = loadTypes.find(
|
|
13162
|
-
(loadType) => loadType.id === type
|
|
13158
|
+
(loadType) => loadType.id.toString() === type
|
|
13163
13159
|
);
|
|
13164
13160
|
if (!selectedLoadType) {
|
|
13165
13161
|
return /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Col, { md: 3, children: [
|
|
@@ -13348,9 +13344,9 @@ var CardVehicleOwnerForm = ({
|
|
|
13348
13344
|
`owners.${index}.cargo.${cargoIndex}.cargoType`
|
|
13349
13345
|
);
|
|
13350
13346
|
const selectedLoadType2 = loadTypes.find(
|
|
13351
|
-
(loadType) => loadType.id === type2
|
|
13347
|
+
(loadType) => loadType.id.toString() === type2
|
|
13352
13348
|
);
|
|
13353
|
-
return selectedLoadType2?.unit?.name
|
|
13349
|
+
return selectedLoadType2?.unit?.name;
|
|
13354
13350
|
})()
|
|
13355
13351
|
}
|
|
13356
13352
|
)
|