Skip to content

Commit

Permalink
fix: filter params set by setRecord in useRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-krysiak committed Oct 16, 2020
1 parent a580eb7 commit 82ea4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/hooks/use-record/use-record.tsx
Expand Up @@ -103,7 +103,7 @@ export const useRecord = (
onNotice(response.data.notice)
}
if (submitOptions?.updateOnSave !== false) {
setRecord(prev => mergeRecordResponse(prev, response.data))
setFilteredRecord(prev => mergeRecordResponse(prev, response.data))
}
setProgress(0)
setLoading(false)
Expand Down

0 comments on commit 82ea4d5

Please sign in to comment.