This commit is contained in:
parent
0188dcd32b
commit
c84053741c
@ -145,7 +145,7 @@ export class BaseApiClient {
|
|||||||
|
|
||||||
// Create an AbortController for timeout handling
|
// Create an AbortController for timeout handling
|
||||||
const controller = new AbortController();
|
const controller = new AbortController();
|
||||||
const timeoutId = setTimeout(() => controller.abort(), timeout);
|
const timeoutId = window.setTimeout(() => controller.abort(), timeout);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
|
@ -58,7 +58,7 @@ const Tooltip: React.FC<TooltipProps> = ({
|
|||||||
clearTimeout(timeoutRef.current);
|
clearTimeout(timeoutRef.current);
|
||||||
}
|
}
|
||||||
|
|
||||||
timeoutRef.current = setTimeout(() => {
|
timeoutRef.current = window.setTimeout(() => {
|
||||||
const position = calculateTooltipPosition();
|
const position = calculateTooltipPosition();
|
||||||
setTooltipPosition(position);
|
setTooltipPosition(position);
|
||||||
setIsVisible(true);
|
setIsVisible(true);
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
/* Linting */
|
/* Linting */
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": false,
|
||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"erasableSyntaxOnly": true,
|
"erasableSyntaxOnly": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user