mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-16 21:23:44 +08:00
🐛 fix: tokens create page initialization error
This commit is contained in:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user