File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ export interface UseLinkDevtoolsContext {
84
84
route : RouteLocationNormalized & { href : string }
85
85
isActive : boolean
86
86
isExactActive : boolean
87
- error : string
87
+ error : string | null
88
88
}
89
89
90
90
export type UseLinkOptions = VueUseOptions < RouterLinkOptions >
@@ -192,7 +192,7 @@ export function useLink(props: UseLinkOptions) {
192
192
route : route . value ,
193
193
isActive : isActive . value ,
194
194
isExactActive : isExactActive . value ,
195
- error : '' ,
195
+ error : null ,
196
196
}
197
197
198
198
// @ts -expect-error: this is internal
@@ -205,7 +205,7 @@ export function useLink(props: UseLinkOptions) {
205
205
linkContextDevtools . isActive = isActive . value
206
206
linkContextDevtools . isExactActive = isExactActive . value
207
207
linkContextDevtools . error = isValidTo ( unref ( props . to ) )
208
- ? ''
208
+ ? null
209
209
: 'Invalid "to" value'
210
210
} ,
211
211
{ flush : 'post' }
You can’t perform that action at this time.
0 commit comments