Skip to content

Commit 179c5ee

Browse files
use value instead of component which does not exists at post processing
As post processing happens on whole submission, not on each component
1 parent c50c544 commit 179c5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/process/filter/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const filterPostProcess: ProcessorFnSync<FilterScope> = (context: FilterC
4040
if (scope.filter[path]) {
4141
let value = get(submission?.data, path);
4242
if (isObject(value) && isObject(scope.filter[path])) {
43-
if (Utils.getModelType(context.component) === 'dataObject') {
43+
if ((value as any).data) {
4444
value = {...value, ...scope.filter[path], data: (value as any)?.data}
4545
} else {
4646
value = {...value, ...scope.filter[path]}

0 commit comments

Comments
 (0)