|
@@ -20,6 +20,7 @@ import { apiBatchLink } from '@/services/customer'
|
|
|
const Contact = props => {
|
|
const Contact = props => {
|
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
const { toggleDrawer, setDrawerProps } = useModal()
|
|
|
const { personTagColorMap, teamTagColorMap, personTags, teamTags, dispatch } = props
|
|
const { personTagColorMap, teamTagColorMap, personTags, teamTags, dispatch } = props
|
|
|
|
|
+ // console.log(personTags, personTagColorMap)
|
|
|
|
|
|
|
|
const tRef = useRef()
|
|
const tRef = useRef()
|
|
|
const [tagState, setTagState] = useState({
|
|
const [tagState, setTagState] = useState({
|
|
@@ -58,7 +59,7 @@ const Contact = props => {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
return { personTagMap, teamTagMap }
|
|
return { personTagMap, teamTagMap }
|
|
|
- }, [personTags, teamTags])
|
|
|
|
|
|
|
+ }, [personTags, teamTags, personTagColorMap, teamTagColorMap])
|
|
|
|
|
|
|
|
const toolbarOptionsChange = (type, ids) => {
|
|
const toolbarOptionsChange = (type, ids) => {
|
|
|
setTagState({ ...tagState, [type]: ids })
|
|
setTagState({ ...tagState, [type]: ids })
|