mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Update etapi.js
(cherry picked from commit b97ebe9f03e84d01402f26b97fd0418a14a8d946)
This commit is contained in:
parent
6015a067ec
commit
6548149107
@ -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…
x
Reference in New Issue
Block a user