diff --git a/packages/devtools/src/runtime/function-metrics-helpers.ts b/packages/devtools/src/runtime/function-metrics-helpers.ts index 976f31c2d..937ea2e61 100644 --- a/packages/devtools/src/runtime/function-metrics-helpers.ts +++ b/packages/devtools/src/runtime/function-metrics-helpers.ts @@ -76,12 +76,13 @@ export function __nuxtTimelineWrap(name: string, fn: any) { try { if (result && typeof result.then === 'function') { event.isPromise = true - return result + result .then((i: any) => i) .finally(() => { event.end = Date.now() return result }) + return result } } catch (e) {}