mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2024-11-19 01:40:29 +01:00
Check for authentication obj before delete operation #1415
This commit is contained in:
parent
b6dbd23ae7
commit
44582abbbf
@ -40,11 +40,13 @@ export class CommonService {
|
||||
return obj;
|
||||
};
|
||||
this.removeAuthSecureData = (node) => {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
if (node.authentication) {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
}
|
||||
return node;
|
||||
};
|
||||
this.removeSecureData = (config) => {
|
||||
|
@ -47,11 +47,13 @@ export class CommonService {
|
||||
};
|
||||
|
||||
public removeAuthSecureData = (node: SelectedNode) => {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
if (node.authentication) {
|
||||
delete node.authentication.macaroonPath;
|
||||
delete node.authentication.runePath;
|
||||
delete node.authentication.runeValue;
|
||||
delete node.authentication.lnApiPassword;
|
||||
delete node.authentication.options;
|
||||
}
|
||||
return node;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user