mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
chore(ts): fix errors
This commit is contained in:
parent
5bbc28b770
commit
86dff7034a
3 changed files with 3 additions and 3 deletions
|
|
@ -105,7 +105,7 @@ onBeforeUnmount(() => {
|
||||||
* @param payload.to
|
* @param payload.to
|
||||||
*/
|
*/
|
||||||
function onRouteChange({ from, to }: { from: RouteLocation, to: RouteLocation }): void {
|
function onRouteChange({ from, to }: { from: RouteLocation, to: RouteLocation }): void {
|
||||||
if (to.name !== 'conversation' || from.params.token !== to.params.token || (to.hash && isInCall.value)) {
|
if (to.name !== 'conversation' || ('token' in from.params && from.params.token !== to.params.token) || (to.hash && isInCall.value)) {
|
||||||
abortSearch()
|
abortSearch()
|
||||||
emit('close')
|
emit('close')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ onBeforeUnmount(() => {
|
||||||
* @param payload.to
|
* @param payload.to
|
||||||
*/
|
*/
|
||||||
function onRouteChange({ from, to }: { from: RouteLocation, to: RouteLocation }): void {
|
function onRouteChange({ from, to }: { from: RouteLocation, to: RouteLocation }): void {
|
||||||
if (to.name !== 'conversation' || from.params.token !== to.params.token || (from.query.threadId !== to.query.threadId && isInCall.value)) {
|
if (to.name !== 'conversation' || ('token' in from.params && from.params.token !== to.params.token) || (from.query.threadId !== to.query.threadId && isInCall.value)) {
|
||||||
emit('close')
|
emit('close')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ const descriptionLabel = computed(() => {
|
||||||
*/
|
*/
|
||||||
async function deleteEventConversation() {
|
async function deleteEventConversation() {
|
||||||
try {
|
try {
|
||||||
if (route?.params?.token === props.token) {
|
if ('token' in route.params && route.params.token === props.token) {
|
||||||
await router.push({ name: 'root' })
|
await router.push({ name: 'root' })
|
||||||
.catch((failure) => !isNavigationFailure(failure, NavigationFailureType.duplicated) && Promise.reject(failure))
|
.catch((failure) => !isNavigationFailure(failure, NavigationFailureType.duplicated) && Promise.reject(failure))
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue