Skip to content

Commit

Permalink
fixes #5025 (#5029)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Mar 6, 2023
1 parent 53fb6fd commit 5b601e5
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/Components/Assets/AssetsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,13 @@ const AssetsList = () => {
<p className="text-xl flex font-medium capitalize break-words">
<span className="mr-2 text-primary-500">
<i
className={`fas fa-${(
(asset.asset_class &&
assetClassProps[asset.asset_class]) ||
assetClassProps.NONE
).icon
}`}
className={`fas fa-${
(
(asset.asset_class &&
assetClassProps[asset.asset_class]) ||
assetClassProps.NONE
).icon
}`}
/>
</span>
<p className="truncate w-48">{asset.name}</p>
Expand Down Expand Up @@ -402,9 +403,9 @@ const AssetsList = () => {
</div>
</>
)}
{typeof facility === "undefined" && importAssetModalOpen && (
{typeof facility === "undefined" && (
<FacilitiesSelectDialogue
show={true}
show={importAssetModalOpen}
setSelected={(e) => setFacility(e)}
selectedFacility={
facility ?? {
Expand All @@ -415,7 +416,7 @@ const AssetsList = () => {
return undefined;
}}
handleCancel={() => {
return undefined;
return setImportAssetModalOpen(false);
}}
/>
)}
Expand Down

0 comments on commit 5b601e5

Please sign in to comment.