Skip to content

Commit

Permalink
Add Product Model Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrho committed Oct 4, 2024
1 parent 06109b6 commit ecf98c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions jccm/src/Frontend/Layout/LeftSide.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,11 @@ const LeftSide = () => {
const { notify } = useNotify();
const {
isUserLoggedIn,
inventory,
setInventory,
deviceFacts,
cloudInventory,
setCloudInventory,
cloudInventoryFilterApplied,
setCloudInventoryFilterApplied,
currentActiveThemeName,
isInventoryLoading,
isChecking,
settings,
} = useStore();

Expand Down Expand Up @@ -212,7 +208,7 @@ const LeftSide = () => {
relationship='label'
>
<Button
disabled={countOfDeviceWithFacts === 0}
disabled={countOfDeviceWithFacts === 0 && Object.keys(isChecking).length === 0}
appearance='subtle'
icon={<ResetFactsIcon fontSize='15px' />}
onClick={async () => {
Expand Down

0 comments on commit ecf98c2

Please sign in to comment.