Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
zirui liu committed Mar 17, 2023
1 parent 2fa6b6c commit e00d8a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions web/src/pages/enterprise/components/select-content/hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export const useAction = (props: SelectContentHookProps) => {
SendObjOrGroup.Object
)

const [updatedDeptUserList, setUpdatedDeptUserList] = useState(false)
const [isUpdatedDeptUser, setIsUpdatedDeptUser] = useState(false)

const [editor, setEditor] = useState<wangEditor.IDomEditor | null>(null)

Expand Down Expand Up @@ -446,7 +446,7 @@ export const useAction = (props: SelectContentHookProps) => {
}
return item
})
setUpdatedDeptUserList(true)
setIsUpdatedDeptUser(true)
setDepartmentAndUserList(array)
}
}, [isLoadStop])
Expand Down Expand Up @@ -1132,6 +1132,6 @@ export const useAction = (props: SelectContentHookProps) => {
setHtml,
setHtmlText,
tagsValue,
updatedDeptUserList,
isUpdatedDeptUser,
}
}
4 changes: 2 additions & 2 deletions web/src/pages/enterprise/components/select-content/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const SelectContent = memo(
editorConfig,
setHtmlText,
tagsValue,
updatedDeptUserList,
isUpdatedDeptUser,
} = useAction({
outerSendData: sendData,
getSendData,
Expand Down Expand Up @@ -397,7 +397,7 @@ const SelectContent = memo(
setChatId={setChatId}
sendType={sendType}
setSendType={setSendType}
isUpdatedDeptUser={updatedDeptUserList}
isUpdatedDeptUser={isUpdatedDeptUser}
/>
</div>
<div className={styles.typeShow}>
Expand Down

0 comments on commit e00d8a5

Please sign in to comment.