Skip to content

Commit

Permalink
fix: reverse lookup count
Browse files Browse the repository at this point in the history
  • Loading branch information
7sete7 committed Oct 9, 2024
1 parent 73f6fa3 commit ae15ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imports/konsistent/processReverseLookups.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function processReverseLookups(metaName, id, data, action,
let reverseLookupCount = 0;
for (var fieldName in meta.fields) {
field = meta.fields[fieldName];
if (field.type === 'lookup' && !field.reverseLookup && data[field.name] !== undefined) {
if (field.type === 'lookup' && field.reverseLookup && data[field.name] !== undefined) {
reverseLookupCount++;
}
}
Expand Down

0 comments on commit ae15ce5

Please sign in to comment.