- ์กฐ๊ฑด์ด ์์ ๋
temp = temp.map((el: any) => (el.index === selectedData[i].index ? { ...el, rowType: '์ญ์ ' } : el));
selectedDatas๋ ํ์ฌ ์ ํ๋์ด ์๋ ํ์ ๋งํ๋ค. (ag grid)
์ ํ๋์ด ์๋ index๊ณผ temp์ ์๋ index ๊ฐ์ด ๊ฐ์ผ๋ฉด rowType์ '์ญ์ '๋ผ๋ ๊ฐ์ ์ค๋ค.
const newData = callListcp.map((item: any) => ({
...item,
campaignName: initCampaignList?.find((el) => el.cdId === String(item.id))?.cdNm
}));