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
@@ -43,7 +43,7 @@ export function getOrgSlug(hostname: string, forcedSlug?: string) {
|
||||
return null;
|
||||
}
|
||||
// Define which is the current domain/subdomain
|
||||
const slug = hostname.replace(`.${currentHostname}` ?? "", "");
|
||||
const slug = hostname.replace(currentHostname ? `.${currentHostname}` : "", "");
|
||||
const hasNoDotInSlug = slug.indexOf(".") === -1;
|
||||
if (hasNoDotInSlug) {
|
||||
return slug;
|
||||
|
||||
Reference in new issue
Block a user