Update etapi.js

(cherry picked from commit b97ebe9f03e84d01402f26b97fd0418a14a8d946)
This commit is contained in:
mechanarchy 2023-06-10 17:36:23 +10:00 committed by zadam
parent 6015a067ec
commit 6548149107

View File

@ -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});