@applica-software-guru/react-admin 1.5.349 → 1.5.351

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -108,5 +108,5 @@
108
108
  "type": "module",
109
109
  "types": "dist/index.d.ts",
110
110
  "typings": "dist/index.d.ts",
111
- "version": "1.5.349"
111
+ "version": "1.5.351"
112
112
  }
@@ -33,10 +33,12 @@ function ReferenceLookupInput(props: ReferenceLookupInputProps): JSX.Element {
33
33
  const { open, handleOpen, handleClose } = useDialogState(false);
34
34
  const filter = useMemo(
35
35
  () =>
36
- _.chain(propFilter ?? {})
37
- .clone()
38
- .extend({ id__ne: value })
39
- .value(),
36
+ !_.isEmpty(value)
37
+ ? _.chain(propFilter ?? {})
38
+ .clone()
39
+ .extend({ id__ne: value })
40
+ .value()
41
+ : propFilter,
40
42
  [propFilter, value]
41
43
  );
42
44
  const filters = useMemo(
@@ -97,3 +99,4 @@ function ReferenceLookupInput(props: ReferenceLookupInputProps): JSX.Element {
97
99
  }
98
100
 
99
101
  export { ReferenceLookupInput };
102
+ export type { ReferenceLookupInputProps };
@@ -33,10 +33,12 @@ function ReferenceManyLookupInput(props: ReferenceManyLookupInputProps): JSX.Ele
33
33
  const { open, handleOpen, handleClose } = useDialogState(false);
34
34
  const filter = useMemo(
35
35
  () =>
36
- _.chain(propFilter ?? {})
37
- .clone()
38
- .extend({ id__nin: value })
39
- .value(),
36
+ !_.isEmpty(value)
37
+ ? _.chain(propFilter ?? {})
38
+ .clone()
39
+ .extend({ id__nin: value })
40
+ .value()
41
+ : propFilter,
40
42
  [propFilter, value]
41
43
  );
42
44
  const filters = useMemo(
@@ -97,3 +99,4 @@ function ReferenceManyLookupInput(props: ReferenceManyLookupInputProps): JSX.Ele
97
99
  }
98
100
 
99
101
  export { ReferenceManyLookupInput };
102
+ export type { ReferenceManyLookupInputProps };