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
@ -110,6 +110,10 @@ export default class EtapiOptions extends OptionsWidget {
|
|||||||
defaultValue: oldName
|
defaultValue: oldName
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if(tokenName === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await server.patch(`etapi-tokens/${etapiTokenId}`, {name: tokenName});
|
await server.patch(`etapi-tokens/${etapiTokenId}`, {name: tokenName});
|
||||||
|
|
||||||
this.refreshTokens();
|
this.refreshTokens();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user