mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 08:06:03 +08:00
Update etapi.js
This commit is contained in:
parent
c177aaa901
commit
b97ebe9f03
|
@ -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});
|
||||
|
||||
|
|
Loading…
Reference in a new issue