feat(ui): misc tidy

This commit is contained in:
psychedelicious 2023-05-25 00:07:17 +10:00 committed by Kent Keirsey
parent 068bbe3a39
commit 010f63a50d
4 changed files with 2 additions and 5 deletions

View File

@ -13,11 +13,9 @@ const useGetImageByNameSelector = createSelector(
const useGetImageByNameAndType = () => {
const { allResults, allUploads } = useAppSelector(useGetImageByNameSelector);
return (name: string, type: ImageType) => {
if (type === 'results') {
const resultImagesResult = allResults[name];
if (resultImagesResult) {
return resultImagesResult;
}

View File

@ -1,4 +1,3 @@
import { v4 as uuidv4 } from 'uuid';
import { RootState } from 'app/store/store';
import {
CompelInvocation,

View File

@ -94,6 +94,6 @@ export const buildTextToImageGraph = (state: RootState): Graph => {
// Create and add the noise nodes
graph = addNoiseNodes(graph, TEXT_TO_LATENTS, state);
console.log(graph);
return graph;
};

View File

@ -13,7 +13,7 @@ import {
buildOutputFieldTemplates,
} from './fieldTemplateBuilders';
const invocationDenylist = ['Graph', 'LoadImage'];
const invocationDenylist = ['Graph'];
export const parseSchema = (openAPI: OpenAPIV3.Document) => {
// filter out non-invocation schemas, plus some tricky invocations for now