chore: make basePath nullable

This commit is contained in:
ValdiANS
2026-01-15 09:47:11 +07:00
parent 447a953ed3
commit 3827204f13
+2 -2
View File
@@ -325,7 +325,7 @@ const SelectInput = <T extends OptionType>(props: SelectInputProps<T>) => {
};
const useSelect = <T,>(
basePath: string,
basePath: string | null,
valueKey: keyof T | string,
labelKey: keyof T | string,
searchKey: string = 'search',
@@ -354,7 +354,7 @@ const useSelect = <T,>(
[limitKey]: String(limit),
}).toString();
return `${basePath}?${qs}`;
return basePath ? `${basePath}?${qs}` : null;
};
const {