- aggiunta campi Gas data + fix

This commit is contained in:
Surya Paolo
2023-12-28 23:53:11 +01:00
parent 5afe9dd1e2
commit db7724cca4

View File

@@ -1720,7 +1720,14 @@ module.exports = {
removeLastSlashFromPath: function (myString) { removeLastSlashFromPath: function (myString) {
let regex = /\/$/; let regex = /\/$/;
let result = myString.replace(regex, ""); let result = myString;
try {
if (myString)
result = myString.replace(regex, "");
} catch (e) {
return myString;
}
return result; return result;
}, },