260624_01_ENH: 사용자 수정 관련 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user