refactor: Typescript fixes and updates for bumping ts version to 5.8.2 (#19690)
* Typescript fixes and updates for bumping ts version to 5.8.2 * Different TS versions do see an error, so @ts-ignore'ing * Attempt this fix for ignoring createDecipher/createCipher fns * Remove @ts-expect-error
This commit is contained in:
1 parent
1545a8ec82
commit
6f62c6ad5d
17 files changed
+28
-23
No files matched your search
@@ -62,7 +62,7 @@ export function CreateButton(props: CreateBtnProps) {
|
||||
|
||||
// inject selection data into url for correct router history
|
||||
const openModal = (option: Option) => {
|
||||
const _searchParams = new URLSearchParams(searchParams ?? undefined);
|
||||
const _searchParams = new URLSearchParams(searchParams.toString());
|
||||
function setParamsIfDefined(key: string, value: string | number | boolean | null | undefined) {
|
||||
if (value !== undefined && value !== null) _searchParams.set(key, value.toString());
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ function WebDialog(props: DialogProps) {
|
||||
const router = useRouter();
|
||||
const pathname = usePathname();
|
||||
const searchParams = useCompatSearchParams();
|
||||
const newSearchParams = new URLSearchParams(searchParams ?? undefined);
|
||||
const newSearchParams = new URLSearchParams(searchParams.toString());
|
||||
const { children, name, ...dialogProps } = props;
|
||||
|
||||
// only used if name is set
|
||||
|
||||
Reference in new issue
Block a user