mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore(ui): lint
This commit is contained in:
parent
b271474812
commit
95a3c89a56
@ -49,9 +49,8 @@ export const addBoardIdSelectedListener = () => {
|
|||||||
|
|
||||||
if (isSuccess) {
|
if (isSuccess) {
|
||||||
// the board was just changed - we can select the first image
|
// the board was just changed - we can select the first image
|
||||||
const { data: boardImagesData } = imagesApi.endpoints.listImages.select(
|
const { data: boardImagesData } =
|
||||||
queryArgs
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
)(getState());
|
|
||||||
|
|
||||||
if (boardImagesData) {
|
if (boardImagesData) {
|
||||||
const firstImage = imagesSelectors.selectAll(boardImagesData)[0];
|
const firstImage = imagesSelectors.selectAll(boardImagesData)[0];
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { Flex } from '@chakra-ui/react';
|
import { Flex } from '@chakra-ui/react';
|
||||||
|
import ParamIterations from 'features/parameters/components/Parameters/Core/ParamIterations';
|
||||||
import QueueControls from 'features/queue/components/QueueControls';
|
import QueueControls from 'features/queue/components/QueueControls';
|
||||||
import ResizeHandle from 'features/ui/components/tabs/ResizeHandle';
|
import ResizeHandle from 'features/ui/components/tabs/ResizeHandle';
|
||||||
import { usePanelStorage } from 'features/ui/hooks/usePanelStorage';
|
import { usePanelStorage } from 'features/ui/hooks/usePanelStorage';
|
||||||
@ -11,7 +12,6 @@ import {
|
|||||||
import 'reactflow/dist/style.css';
|
import 'reactflow/dist/style.css';
|
||||||
import InspectorPanel from './inspector/InspectorPanel';
|
import InspectorPanel from './inspector/InspectorPanel';
|
||||||
import WorkflowPanel from './workflow/WorkflowPanel';
|
import WorkflowPanel from './workflow/WorkflowPanel';
|
||||||
import ParamIterations from 'features/parameters/components/Parameters/Core/ParamIterations';
|
|
||||||
|
|
||||||
const NodeEditorPanelGroup = () => {
|
const NodeEditorPanelGroup = () => {
|
||||||
const [isTopPanelCollapsed, setIsTopPanelCollapsed] = useState(false);
|
const [isTopPanelCollapsed, setIsTopPanelCollapsed] = useState(false);
|
||||||
|
@ -371,9 +371,8 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
categories,
|
categories,
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentCache = imagesApi.endpoints.listImages.select(queryArgs)(
|
const currentCache =
|
||||||
getState()
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
);
|
|
||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
@ -540,9 +539,8 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
categories,
|
categories,
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentCache = imagesApi.endpoints.listImages.select(
|
const currentCache =
|
||||||
queryArgs
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
)(getState());
|
|
||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
@ -655,9 +653,8 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
categories,
|
categories,
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentCache = imagesApi.endpoints.listImages.select(
|
const currentCache =
|
||||||
queryArgs
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
)(getState());
|
|
||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
@ -1081,9 +1078,8 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
// $cache = board_id/[images|assets]
|
// $cache = board_id/[images|assets]
|
||||||
const queryArgs = { board_id: board_id ?? 'none', categories };
|
const queryArgs = { board_id: board_id ?? 'none', categories };
|
||||||
const currentCache = imagesApi.endpoints.listImages.select(queryArgs)(
|
const currentCache =
|
||||||
getState()
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
);
|
|
||||||
|
|
||||||
// IF it eligible for insertion into existing $cache
|
// IF it eligible for insertion into existing $cache
|
||||||
// "eligible" means either:
|
// "eligible" means either:
|
||||||
@ -1223,9 +1219,8 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
|
|
||||||
// $cache = no_board/[images|assets]
|
// $cache = no_board/[images|assets]
|
||||||
const queryArgs = { board_id: 'none', categories };
|
const queryArgs = { board_id: 'none', categories };
|
||||||
const currentCache = imagesApi.endpoints.listImages.select(queryArgs)(
|
const currentCache =
|
||||||
getState()
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
);
|
|
||||||
|
|
||||||
// IF it eligible for insertion into existing $cache
|
// IF it eligible for insertion into existing $cache
|
||||||
// "eligible" means either:
|
// "eligible" means either:
|
||||||
@ -1370,9 +1365,8 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
categories,
|
categories,
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentCache = imagesApi.endpoints.listImages.select(
|
const currentCache =
|
||||||
queryArgs
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
)(getState());
|
|
||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
@ -1518,9 +1512,8 @@ export const imagesApi = api.injectEndpoints({
|
|||||||
categories,
|
categories,
|
||||||
};
|
};
|
||||||
|
|
||||||
const currentCache = imagesApi.endpoints.listImages.select(
|
const currentCache =
|
||||||
queryArgs
|
imagesApi.endpoints.listImages.select(queryArgs)(getState());
|
||||||
)(getState());
|
|
||||||
|
|
||||||
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
const { data } = IMAGE_CATEGORIES.includes(imageDTO.image_category)
|
||||||
? boardsApi.endpoints.getBoardImagesTotal.select(
|
? boardsApi.endpoints.getBoardImagesTotal.select(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user