mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Lint Errors (returning possible null component)
This commit is contained in:
parent
f155b03eee
commit
14c4650801
@ -13,6 +13,10 @@ export default function ParamSDXLPromptArea() {
|
||||
(state: RootState) => state.ui.shouldPinParametersPanel
|
||||
);
|
||||
|
||||
const shouldConcatSDXLStylePrompt = useAppSelector(
|
||||
(state: RootState) => state.sdxl.shouldConcatSDXLStylePrompt
|
||||
);
|
||||
|
||||
return (
|
||||
<Flex
|
||||
sx={{
|
||||
@ -20,6 +24,7 @@ export default function ParamSDXLPromptArea() {
|
||||
gap: 2,
|
||||
}}
|
||||
>
|
||||
{shouldConcatSDXLStylePrompt && (
|
||||
<Box
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
@ -29,6 +34,8 @@ export default function ParamSDXLPromptArea() {
|
||||
>
|
||||
<SDXLConcatLink />
|
||||
</Box>
|
||||
)}
|
||||
{shouldConcatSDXLStylePrompt && (
|
||||
<Box
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
@ -38,6 +45,7 @@ export default function ParamSDXLPromptArea() {
|
||||
>
|
||||
<SDXLConcatLink />
|
||||
</Box>
|
||||
)}
|
||||
<ParamPositiveConditioning />
|
||||
<ParamSDXLConcatButton />
|
||||
<ParamSDXLPositiveStyleConditioning />
|
||||
|
@ -1,15 +1,9 @@
|
||||
import { Box, Flex } from '@chakra-ui/react';
|
||||
import { RootState } from 'app/store/store';
|
||||
import { useAppSelector } from 'app/store/storeHooks';
|
||||
import { motion } from 'framer-motion';
|
||||
import { FaLink } from 'react-icons/fa';
|
||||
|
||||
export default function SDXLConcatLink() {
|
||||
const shouldConcatSDXLStylePrompt = useAppSelector(
|
||||
(state: RootState) => state.sdxl.shouldConcatSDXLStylePrompt
|
||||
);
|
||||
return (
|
||||
shouldConcatSDXLStylePrompt && (
|
||||
<Flex
|
||||
sx={{
|
||||
h: 0.5,
|
||||
@ -107,6 +101,5 @@ export default function SDXLConcatLink() {
|
||||
}}
|
||||
/>
|
||||
</Flex>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user