🐛 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(() => {
|
useEffect(() => {
|
||||||
if (tokenId) {
|
if (tokenId) {
|
||||||
loadToken().then();
|
loadToken().then();
|
||||||
|
} else {
|
||||||
|
setInputs(originInputs);
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [tokenId]);
|
}, [tokenId]);
|
||||||
|
Loading…
Reference in New Issue
Block a user