diff --git a/frontend/src/helpers/parseEnvVar.ts b/frontend/src/helpers/parseEnvVar.ts index 6b056d5e9..d2e39899e 100644 --- a/frontend/src/helpers/parseEnvVar.ts +++ b/frontend/src/helpers/parseEnvVar.ts @@ -15,7 +15,10 @@ export const getKeyValue = (pastedContent: string, delimiters: string[]) => { } }); - if (firstDelimiterIndex === -1) { + // Check if there's any content after the delimiter + const hasValueAfterDelimiter = pastedContent.length > firstDelimiterIndex + foundDelimiter.length; + + if (firstDelimiterIndex === -1 || !hasValueAfterDelimiter) { return { key: pastedContent.trim(), value: "" }; }