Skip to content

Commit b4cff74

Browse files
committed
fix paginationRegExp initialization to use config
1 parent 5e47b05 commit b4cff74

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/openapi-ts/src/plugins/@tanstack/query-core/plugin-legacy.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -917,9 +917,7 @@ export const handlerLegacy: Plugin.LegacyHandler<
917917
(model) => model.meta?.$ref === ref,
918918
);
919919
return refModel?.properties.find((property) => {
920-
const paginationRegExp = getPaginationKeywordsRegExp(
921-
plugin.config,
922-
);
920+
const paginationRegExp = getPaginationKeywordsRegExp(config);
923921
paginationRegExp.lastIndex = 0;
924922
if (paginationRegExp.test(property.name)) {
925923
paginationField = property;
@@ -929,7 +927,7 @@ export const handlerLegacy: Plugin.LegacyHandler<
929927
}
930928

931929
return parameter.properties.find((property) => {
932-
const paginationRegExp = getPaginationKeywordsRegExp(plugin.config);
930+
const paginationRegExp = getPaginationKeywordsRegExp(config);
933931
paginationRegExp.lastIndex = 0;
934932
if (paginationRegExp.test(property.name)) {
935933
paginationField = property;

0 commit comments

Comments
 (0)