fix; Key issue in Lora List

This commit is contained in:
blessedcoolant 2023-08-12 04:43:40 +12:00
parent 1affb7f647
commit 5629d8fa37

View File

@ -1,4 +1,4 @@
import { Divider } from '@chakra-ui/react';
import { Divider, Flex } from '@chakra-ui/react';
import { createSelector } from '@reduxjs/toolkit';
import { stateSelector } from 'app/store/store';
import { useAppSelector } from 'app/store/storeHooks';
@ -20,10 +20,10 @@ const ParamLoraList = () => {
return (
<>
{lorasArray.map((lora, i) => (
<>
{i > 0 && <Divider key={`${lora.model_name}-divider`} pt={1} />}
<ParamLora key={lora.model_name} lora={lora} />
</>
<Flex key={lora.model_name} sx={{ flexDirection: 'column', gap: 2 }}>
{i > 0 && <Divider pt={1} />}
<ParamLora lora={lora} />
</Flex>
))}
</>
);