🐛 fix: tokens create page initialization error

This commit is contained in:
Martial BE 2024-03-29 11:51:20 +08:00
parent 5a2588d243
commit c509d18daf
No known key found for this signature in database
GPG Key ID: D06C32DF0EDB9084

View File

@ -96,6 +96,8 @@ const EditModal = ({ open, tokenId, onCancel, onOk }) => {
useEffect(() => {
if (tokenId) {
loadToken().then();
} else {
setInputs(originInputs);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [tokenId]);