diff --git a/apps/st/src/components/statistics/management/NoticeTalkSending.tsx b/apps/st/src/components/statistics/management/NoticeTalkSending.tsx index cdb060e30..ff5031193 100644 --- a/apps/st/src/components/statistics/management/NoticeTalkSending.tsx +++ b/apps/st/src/components/statistics/management/NoticeTalkSending.tsx @@ -77,6 +77,16 @@ interface SelectedRecipient extends SewerStUserItem { variableOverrides: Record; } +type CommonVariableKey = + | "userNm" + | "sido" + | "gugun" + | "gubunNm" + | "deptNm" + | "jbgdNm" + | "telNo" + | "custom"; + const EMPTY_ADST_LIST: AdstZoneResponseDto[] = []; const GUBUN_OPTIONS = [ { value: "PIC", label: "입력자" }, @@ -139,18 +149,7 @@ function NtitlkSndng() { Record >({}); const [commonVariableMapping, setCommonVariableMapping] = useState< - Record< - string, - | "userNm" - | "sido" - | "gugun" - | "gubunNm" - | "deptNm" - | "jbgdNm" - | "telNo" - | "custom" - | "" - > + Record >({}); const [previewRecipient, setPreviewRecipient] = @@ -286,7 +285,7 @@ function NtitlkSndng() { rowSelection: userListRowSelection, }, onRowSelectionChange: setUserListRowSelection, - getRowId: (row) => `${row.userNm}-${row.telNo}`, + getRowId: (row, i) => `${i}-${row.telNo}`, }); const selectedTemplate = useMemo( @@ -527,7 +526,7 @@ function NtitlkSndng() { -
+

미리보기

@@ -640,7 +639,7 @@ function NtitlkSndng() {
-
+
{isUserListLoading ? (
@@ -659,7 +658,7 @@ function NtitlkSndng() { )}
{!isUserListLoading && userList.length > 0 && ( -
+

선택{" "} @@ -692,6 +691,14 @@ function NtitlkSndng() { {selectedRecipients.length}명 +