@apptimate/ui 3.6.0 → 3.7.0
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/package.json
CHANGED
|
@@ -75,7 +75,8 @@ export function WarehousePicker({
|
|
|
75
75
|
const filtered = warehouses.filter(
|
|
76
76
|
(w) =>
|
|
77
77
|
(w.name || "").toLowerCase().includes(searchLower) ||
|
|
78
|
-
(w.code || "").toLowerCase().includes(searchLower)
|
|
78
|
+
(w.code || "").toLowerCase().includes(searchLower) ||
|
|
79
|
+
(w.organization?.name || "").toLowerCase().includes(searchLower)
|
|
79
80
|
);
|
|
80
81
|
|
|
81
82
|
return (
|
|
@@ -116,7 +117,12 @@ export function WarehousePicker({
|
|
|
116
117
|
<PickerItem
|
|
117
118
|
key={wh.id}
|
|
118
119
|
label={wh.name}
|
|
119
|
-
sublabel={
|
|
120
|
+
sublabel={
|
|
121
|
+
[
|
|
122
|
+
wh.code ? `Code: ${wh.code}` : null,
|
|
123
|
+
wh.organization?.name ? `Org: ${wh.organization.name}` : null
|
|
124
|
+
].filter(Boolean).join(" | ") || undefined
|
|
125
|
+
}
|
|
120
126
|
isSelected={String(value) === String(wh.id)}
|
|
121
127
|
onClick={() => handleSelect(wh)}
|
|
122
128
|
/>
|