mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-15 20:35:26 -05:00
fix(ui): do not use state => state as an input selector
This is a no-no, whoops!
This commit is contained in:
@@ -11,7 +11,7 @@ export const useEnableInvocationCache = () => {
|
||||
const { t } = useTranslation();
|
||||
const dispatch = useAppDispatch();
|
||||
const { data: cacheStatus } = useGetInvocationCacheStatusQuery();
|
||||
const isConnected = useAppSelector((state) => state.system.isConnected);
|
||||
const isConnected = useAppSelector((s) => s.system.isConnected);
|
||||
const [trigger, { isLoading }] = useEnableInvocationCacheMutation({
|
||||
fixedCacheKey: 'enableInvocationCache',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user