Skip to content

Commit

Permalink
fix small frontend bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ciur committed Nov 14, 2024
1 parent abd4725 commit 5b70817
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export default function CustomFields() {
const {
data: documentCustomFields,
isSuccess: isSuccessDocumentCustomFields,
isError: isErrorGetDocCF
isError: isErrorGetDocCF,
refetch: refetchCustomFields
} = useGetDocumentCustomFieldsQuery(docID ?? skipToken)

useEffect(() => {
Expand Down Expand Up @@ -133,6 +134,7 @@ export default function CustomFields() {
setDocumentTypeID(option)
setCustomFieldValues([])
setShowSaveButton(false)
refetchCustomFields()
}

const onClearDocumentType = () => {
Expand Down

0 comments on commit 5b70817

Please sign in to comment.