Fix: empty url export

This commit is contained in:
naman-bruno
2025-03-13 18:17:30 +05:30
committed by Anoop M D
parent d37cf28e10
commit 0fb926648b

View File

@@ -11,7 +11,8 @@ import { deleteSecretsInEnvs, deleteUidsInEnvs, deleteUidsInItems } from '../col
*/
export const transformUrl = (url, params) => {
if (typeof url !== 'string' || !url.trim()) {
throw new Error("Invalid URL input");
url = "";
console.error("Invalid URL input:", url);
}
const urlRegexPatterns = {