mirror of
https://github.com/yamadashy/repomix.git
synced 2025-06-11 00:25:54 +03:00
fix(website): Remove throw error in setTimeout callback to prevent unhandled promise rejection
This commit is contained in:
@@ -71,7 +71,6 @@ export function usePackRequest() {
|
|||||||
const timeoutId = setTimeout(() => {
|
const timeoutId = setTimeout(() => {
|
||||||
if (requestController) {
|
if (requestController) {
|
||||||
requestController.abort('Request timed out');
|
requestController.abort('Request timed out');
|
||||||
throw new Error('Request timed out');
|
|
||||||
}
|
}
|
||||||
}, TIMEOUT_MS);
|
}, TIMEOUT_MS);
|
||||||
|
|
||||||
@@ -108,7 +107,6 @@ export function usePackRequest() {
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
// Pack options (re-exported for convenience)
|
// Pack options (re-exported for convenience)
|
||||||
packOptions,
|
|
||||||
...packOptionsComposable,
|
...packOptionsComposable,
|
||||||
|
|
||||||
// Input states
|
// Input states
|
||||||
|
|||||||
Reference in New Issue
Block a user