Skip to content

Commit 314fce1

Browse files
authored
fix(utils): only apply condition when specified (#572)
1 parent 82ff872 commit 314fce1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/graphile-utils/src/makeAddPgTableConditionPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default function makeAddPgTableConditionPlugin(
107107
}: {
108108
condition: { [key: string]: any } | null;
109109
}) {
110-
if (!condition) {
110+
if (!condition || !(conditionFieldName in condition)) {
111111
return {};
112112
}
113113
const { [conditionFieldName]: conditionValue } = condition;

0 commit comments

Comments
 (0)