Skip to content

Commit

Permalink
Update dependency vue-tsc to v2.1.8 (WordPress#5092)
Browse files Browse the repository at this point in the history
* Update dependency vue-tsc to v2.1.8

* Fix linting: correct type and a workaround

---------

Co-authored-by: Olga Bulat <[email protected]>
  • Loading branch information
openverse-bot and obulat authored Oct 28, 2024
1 parent f9b1769 commit 24a39eb
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 34 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"vitest-dom": "^0.1.1",
"vue": "3.5.12",
"vue-router": "^4.4.5",
"vue-tsc": "2.1.6",
"vue-tsc": "2.1.8",
"storybook": "8.2.9",
"@storybook/vue3": "8.2.9",
"@storybook/addon-links": "8.2.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,10 @@ const handleTab = (
) => {
if (isRecentVisible.value) {
event.preventDefault()
focusIn(recentSearchesRef.value?.$el, 1)
const element = recentSearchesRef.value?.$el
if (element) {
focusIn(element, 1)
}
} else if (button === "content-settings") {
handleTabOut("forward")
}
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/components/VSafeBrowsing/VSafeBrowsing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ let setBlurSensitive = (data: { checked?: boolean }) => {
$sendCustomEvent("TOGGLE_BLUR_SENSITIVE", { checked })
}
const toggles = [
const toggles = computed(() => [
{
name: "fetchSensitive",
state: fetchSensitive,
state: fetchSensitive.value,
switchFn: setFetchSensitive,
},
{
name: "blurSensitive",
state: blurSensitive,
state: blurSensitive.value,
switchFn: setBlurSensitive,
},
]
])
const isDisabled = (name: string) =>
name === "blurSensitive" && !fetchSensitive.value
Expand Down Expand Up @@ -86,7 +86,7 @@ const isDisabled = (name: string) =>
:id="toggle.name"
class="flex-row-reverse justify-between"
:value="toggle.name"
:checked="toggle.state.value"
:checked="toggle.state"
:disabled="isDisabled(toggle.name)"
is-switch
@change="toggle.switchFn"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"prettier": "3.3.3",
"prettier-plugin-tailwindcss": "0.6.8",
"typescript": "5.6.3",
"vue-tsc": "2.1.6"
"vue-tsc": "2.1.8"
}
}
Loading

0 comments on commit 24a39eb

Please sign in to comment.