Skip to content

Commit

Permalink
chore: release 0.24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
arhubi committed Jun 20, 2024
1 parent 1b6cf7b commit 20a5e1e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 0.24.1 (June 20, 2024)

### Fixes

- [useSmartLink] Prevent issues in contexts with no Vue Router context
- [FTextContent] Add missing default allowed tags ([SVC-13387](https://zoov-eu.atlassian.net/browse/SVC-13387))

## 0.24.0 (April 4, 2024)

### Features
Expand Down
5 changes: 0 additions & 5 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
# Changelog Unreleased

### Fixes

- [useSmartLink] Prevent issues in contexts with no Vue Router context
- [FTextContent] Add missing default allowed tags ([SVC-13387](https://zoov-eu.atlassian.net/browse/SVC-13387))
9 changes: 6 additions & 3 deletions src/composables/useSmartLink.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import type { ComputedRef } from 'vue';
import type { RouteLocationRaw } from 'vue-router';
import type {
RouteLocationNormalizedLoaded,
RouteLocationRaw,
} from 'vue-router';

export interface UseSmartLinkBaseProps {
/**
Expand Down Expand Up @@ -63,8 +66,8 @@ export interface UseSmartLinkReturn<Props> {
export function useSmartLink<Props extends UseSmartLinkBaseProps>(
props: Props
): UseSmartLinkReturn<Props> {
// Use the current route if available
const route = typeof useRoute === 'function' ? useRoute() : null;
// Handle the case where the Vue Router context is lost
const route = useRoute() as RouteLocationNormalizedLoaded | null;

const isExternal = computed(
() =>
Expand Down

0 comments on commit 20a5e1e

Please sign in to comment.