Update etapi.js

pull/255/head
mechanarchy 2023-06-10 17:36:23 +07:00 committed by GitHub
parent c177aaa901
commit b97ebe9f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

@ -109,6 +109,10 @@ export default class EtapiOptions extends OptionsWidget {
message: "Please enter new token's name",
defaultValue: oldName
});
if(tokenName === null) {
return;
}
await server.patch(`etapi-tokens/${etapiTokenId}`, {name: tokenName});