Skip to content

Commit

Permalink
Add changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed May 16, 2023
1 parent ac63a50 commit 2960306
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/VContentLink/VContentLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import useSearchType from "~/composables/use-search-type"
import VIcon from "~/components/VIcon/VIcon.vue"
import VLink from "~/components/VLink.vue"
import VIcon from "~/components/VIcon/VIcon.vue"
export default defineComponent({
name: "VContentLink",
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/composables/use-component-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import { getCurrentInstance } from "vue"
*/
export const useComponentName = () => {
const vm = getCurrentInstance()
return vm?.proxy.$options.name
return vm?.proxy.$options.name ?? "Unknown"
}
2 changes: 1 addition & 1 deletion frontend/src/composables/use-search-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function useSearchType() {
analytics.sendCustomEvent("CHANGE_CONTENT_TYPE", {
previous: previousSearchType.value,
next: searchType,
component: componentName ?? "Unknown",
component: componentName,
})
useSearchStore().setSearchType(searchType)
previousSearchType.value = searchType
Expand Down

0 comments on commit 2960306

Please sign in to comment.