mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
Merge pull request #4019 from mechanarchy/patch-2
Fix attempted ETAPI token rename after cancel
This commit is contained in:
commit
fbc805a221
@ -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