Skip to content

Commit

Permalink
fix: #495, avoids appending version to id queries
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Apr 4, 2022
1 parent 175642c commit ab432a4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/versions/drafts/appendVersionToQueryKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ export const appendVersionToQueryKey = (query: Where): Where => {
};
}

return {
...res,
[`version.${key}`]: val,
};
if (key !== 'id') {
return {
...res,
[`version.${key}`]: val,
};
}

return res;
}, {});
};

0 comments on commit ab432a4

Please sign in to comment.