Fix: Improve dynamic group variable formatting

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/f9270af8-e404-4ab7-8924-be9cfc36d854.jpg
This commit is contained in:
alphaeusmote
2025-04-10 21:44:25 +00:00
parent 0c9ceb0bf9
commit ff84ea8889
@@ -88,8 +88,8 @@ const VariableSelector: React.FC<VariableSelectorProps> = ({ onSelectVariable, c
const formattedVar = `OU={${attribute}}`;
onSelectVariable(formattedVar);
} else {
// Format for group name with CN prefix
const formattedVar = `CN={${attribute}}`;
// For group name variables, don't add CN= prefix, just the variable
const formattedVar = `{${attribute}}`;
onSelectVariable(formattedVar);
}
setIsOpen(false);
@@ -110,8 +110,8 @@ const VariableSelector: React.FC<VariableSelectorProps> = ({ onSelectVariable, c
const formattedVar = `OU={${customAttribute.trim()}}`;
onSelectVariable(formattedVar);
} else {
// Format custom attribute for group name with CN prefix
const formattedVar = `CN={${customAttribute.trim()}}`;
// For group name variables, don't add CN= prefix, just the variable
const formattedVar = `{${customAttribute.trim()}}`;
onSelectVariable(formattedVar);
}
setCustomAttribute('');