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:
heheer
2024-05-08 14:39:02 +08:00
committed by GitHub
parent caa0755d9a
commit 2e468fc8ca
4 changed files with 140 additions and 84 deletions

View File

@@ -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 && (