Skip to content

Commit ecf98c2

Browse files
committed
Add Product Model Validation
1 parent 06109b6 commit ecf98c2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

jccm/src/Frontend/Layout/LeftSide.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,11 @@ const LeftSide = () => {
6868
const { notify } = useNotify();
6969
const {
7070
isUserLoggedIn,
71-
inventory,
72-
setInventory,
7371
deviceFacts,
7472
cloudInventory,
75-
setCloudInventory,
7673
cloudInventoryFilterApplied,
77-
setCloudInventoryFilterApplied,
78-
currentActiveThemeName,
7974
isInventoryLoading,
75+
isChecking,
8076
settings,
8177
} = useStore();
8278

@@ -212,7 +208,7 @@ const LeftSide = () => {
212208
relationship='label'
213209
>
214210
<Button
215-
disabled={countOfDeviceWithFacts === 0}
211+
disabled={countOfDeviceWithFacts === 0 && Object.keys(isChecking).length === 0}
216212
appearance='subtle'
217213
icon={<ResetFactsIcon fontSize='15px' />}
218214
onClick={async () => {

0 commit comments

Comments
 (0)