Skip to content

Commit

Permalink
enhanced-asset-header
Browse files Browse the repository at this point in the history
  • Loading branch information
manmeetnagii committed Dec 17, 2024
1 parent 778f379 commit f601b89
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Assets/AssetsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ const AssetsList = () => {
const [selectedFacility, setSelectedFacility] = useState<FacilityModel>();
const params = {
limit: resultsPerPage,
page: qParams.page,
name: qParams.name || "",
serial_number: qParams.serial_number || "",
qr_code_id: qParams.qr_code_id || "",
page: qParams.page || 1,
name: qParams.name || undefined,
serial_number: qParams.serial_number || undefined,
qr_code_id: qParams.qr_code_id || undefined,
offset: (qParams.page ? qParams.page - 1 : 0) * resultsPerPage,
search_text: qParams.search || "",
facility: qParams.facility || "",
Expand Down Expand Up @@ -478,6 +478,7 @@ const AssetsList = () => {
),
badge("Name/Serial No./QR ID", "search"),
value("Asset Class", "asset_class", asset_class ?? ""),
value("Name", "name", qParams.name ?? ""),
value("Status", "status", status?.replace(/_/g, " ") ?? ""),
value(
"Location",
Expand Down

0 comments on commit f601b89

Please sign in to comment.