260624_01_ENH: 사용자 수정 관련 수정

This commit is contained in:
2026-06-24 09:40:24 +09:00
parent c87557947f
commit 3d4fa65b0e
4 changed files with 33 additions and 23 deletions

View File

@@ -85,6 +85,12 @@ export function SmsSendDialog({
.filter((item) => item.destTel);
}, [selectedUsers, addParams]);
const msgParamKeys = useMemo(() => {
return Array.from(
new Set(destinations.flatMap((destination) => Object.keys(destination.msgParam)))
);
}, [destinations]);
useEffect(() => {
if (!open) return;
@@ -105,6 +111,12 @@ export function SmsSendDialog({
setDraft((prev) => prev ? {...prev, [key]: value} : prev);
};
useEffect(() => {
if (!open) return;
console.log("d\estinations msgParam keys", msgParamKeys, destinations);
}, [msgParamKeys, open]);
const saveTemplate = async () => {
if (!draft) return null;