fix(ui): add formatted neg prompt for linear nodes (#3282)

* fix(ui): add formatted neg prompt for linear nodes

* remove conditional

---------

Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
This commit is contained in:
Mary Hipp Rogers 2023-04-27 12:05:35 -07:00 committed by GitHub
parent 31c7fa833e
commit 1e837e3c9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -16,6 +16,7 @@ export const buildImg2ImgNode = (state: RootState): ImageToImageInvocation => {
const {
prompt,
negativePrompt,
seed,
steps,
width,
@ -38,7 +39,7 @@ export const buildImg2ImgNode = (state: RootState): ImageToImageInvocation => {
const imageToImageNode: ImageToImageInvocation = {
id: nodeId,
type: 'img2img',
prompt,
prompt: `${prompt} [${negativePrompt}]`,
steps,
width,
height,

View File

@ -10,6 +10,7 @@ export const buildTxt2ImgNode = (state: RootState): TextToImageInvocation => {
const {
prompt,
negativePrompt,
seed,
steps,
width,
@ -23,7 +24,7 @@ export const buildTxt2ImgNode = (state: RootState): TextToImageInvocation => {
const textToImageNode: NonNullable<TextToImageInvocation> = {
id: nodeId,
type: 'txt2img',
prompt,
prompt: `${prompt} [${negativePrompt}]`,
steps,
width,
height,