Skip to content

Commit a676d35

Browse files
fix(ui): fix rebase issue
1 parent 2a92e3d commit a676d35

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

invokeai/frontend/web/src/features/nodes/components/ui/NodeInvokeButton.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Box } from '@chakra-ui/react';
2-
import { readinessSelector } from 'app/selectors/readinessSelector';
32
import { userInvoked } from 'app/store/actions';
43
import { useAppDispatch, useAppSelector } from 'app/store/storeHooks';
54
import IAIButton, { IAIButtonProps } from 'common/components/IAIButton';
65
import IAIIconButton, {
76
IAIIconButtonProps,
87
} from 'common/components/IAIIconButton';
8+
import { useIsReadyToInvoke } from 'common/hooks/useIsReadyToInvoke';
99
import ProgressBar from 'features/system/components/ProgressBar';
1010
import { activeTabNameSelector } from 'features/ui/store/uiSelectors';
1111
import { useCallback } from 'react';
@@ -21,9 +21,8 @@ interface InvokeButton
2121
export default function NodeInvokeButton(props: InvokeButton) {
2222
const { iconButton = false, ...rest } = props;
2323
const dispatch = useAppDispatch();
24-
const { isReady } = useAppSelector(readinessSelector);
2524
const activeTabName = useAppSelector(activeTabNameSelector);
26-
25+
const isReady = useIsReadyToInvoke();
2726
const handleInvoke = useCallback(() => {
2827
dispatch(userInvoked('nodes'));
2928
}, [dispatch]);

0 commit comments

Comments
 (0)