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 useGetImageByNameAndType = () => {
const { allResults, allUploads } = useAppSelector(useGetImageByNameSelector); const { allResults, allUploads } = useAppSelector(useGetImageByNameSelector);
return (name: string, type: ImageType) => { return (name: string, type: ImageType) => {
if (type === 'results') { if (type === 'results') {
const resultImagesResult = allResults[name]; const resultImagesResult = allResults[name];
if (resultImagesResult) { if (resultImagesResult) {
return resultImagesResult; return resultImagesResult;
} }

View File

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

View File

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

View File

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