Skip to content

Commit

Permalink
fix: prevented bugs with the start of id being ::id
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Sep 15, 2021
1 parent ba97a0b commit c4a2dc3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util/key-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export const defaultKeyGenerator: KeyGenerator = ({
params,
id
}) => {
if (id) {
return `id::${String(id)}`;
}
if (id) return String(id);

// Remove trailing slashes
baseURL = baseURL.replace(SLASHES_REGEX, '');
Expand Down

0 comments on commit c4a2dc3

Please sign in to comment.