🐛 fix: tokens create page initialization error
This commit is contained in:
parent
5a2588d243
commit
c509d18daf
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user