mirror of
https://github.com/labring/FastGPT.git
synced 2025-08-03 13:38:00 +00:00
4.8 test fix (#1386)
* fix: boolean of if else input * fix laf node * fix laf bind * fix laf input type * fix if else check * fix * fix
This commit is contained in:
@@ -67,7 +67,7 @@ const LafAccountModal = ({
|
||||
enabled: !!lafToken,
|
||||
onSuccess: (data) => {
|
||||
if (!getValues('appid') && data.length > 0) {
|
||||
setValue('appid', data[0].appid);
|
||||
setValue('appid', data.filter((app) => app.state === 'Running')[0]?.appid);
|
||||
}
|
||||
},
|
||||
onError: (err) => {
|
||||
@@ -175,7 +175,13 @@ const LafAccountModal = ({
|
||||
)}
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button variant={'whiteBase'} onClick={onClose}>
|
||||
<Button
|
||||
variant={'whiteBase'}
|
||||
onClick={() => {
|
||||
initUserInfo();
|
||||
onClose();
|
||||
}}
|
||||
>
|
||||
{t('common.Close')}
|
||||
</Button>
|
||||
{appid && (
|
||||
|
Reference in New Issue
Block a user