diff --git a/src/versions/drafts/appendVersionToQueryKey.ts b/src/versions/drafts/appendVersionToQueryKey.ts index 9d6c6e0f713..d5d4dbda1da 100644 --- a/src/versions/drafts/appendVersionToQueryKey.ts +++ b/src/versions/drafts/appendVersionToQueryKey.ts @@ -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; }, {}); };