From: Eduardo San Martin Morote Date: Fri, 26 Mar 2021 10:28:23 +0000 (+0100) Subject: refactor(router): remove ts check X-Git-Tag: v4.0.6~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4d783fd28b2015f540efacb49992289ac3ebc14;p=thirdparty%2Fvuejs%2Frouter.git refactor(router): remove ts check --- diff --git a/src/router.ts b/src/router.ts index c9a8a07e..e87be123 100644 --- a/src/router.ts +++ b/src/router.ts @@ -1057,7 +1057,7 @@ export function createRouter(options: RouterOptions): Router { null return nextTick() - .then(() => scrollBehavior!(to, from, scrollPosition)) + .then(() => scrollBehavior(to, from, scrollPosition)) .then(position => position && scrollToPosition(position)) .catch(triggerError) }