Skip to content

Commit

Permalink
fix: null safe fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Oct 19, 2023
1 parent 9cb552b commit 54d486d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/media/MediaControls.vue
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ useIpcRendererOn('play', (_e, type: 'next' | 'previous') => {
const customSort = ref(false)
const customSortOrder = ref()
const setIndex = (index: number) => {
const previousItem = items.value[currentIndex.value]
if (currentIndex.value !== index) {
const previousItem = items.value[currentIndex.value] as MediaItem | undefined
if (previousItem && currentIndex.value !== index) {
previousItem.deactivate = true
}
currentIndex.value = index
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ __metadata:
languageName: node
linkType: hard

"@types/fluent-ffmpeg@npm:^2.1.23":
"@types/fluent-ffmpeg@npm:^2.1.22":
version: 2.1.23
resolution: "@types/fluent-ffmpeg@npm:2.1.23"
dependencies:
Expand Down Expand Up @@ -5537,16 +5537,16 @@ __metadata:
languageName: node
linkType: hard

"electron@npm:27.0.1":
version: 27.0.1
resolution: "electron@npm:27.0.1"
"electron@npm:27.0.0":
version: 27.0.0
resolution: "electron@npm:27.0.0"
dependencies:
"@electron/get": ^2.0.0
"@types/node": ^18.11.18
extract-zip: ^2.0.1
bin:
electron: cli.js
checksum: 1724991c1a8a3696ccf903aa13cb8a0d19e3f9e1b1879aa539c3f98448c68e173b2488c61436151c4a480f985be720013016fef5d510302dd4d042fe149d87d5
checksum: 4a84cb894d5f626fe7a2b5171693e903ce82a7673aabc419e5d3d0d2f9cc8441e5088524ecd86a046beab4ba7dd13820b7a94c361c3e7bc2f0959d1a1a860df5
languageName: node
linkType: hard

Expand Down Expand Up @@ -8270,7 +8270,7 @@ __metadata:
cross-env: ^7.0.3
dayjs: ^1.11.10
dotenv: ^16.3.1
electron: 27.0.1
electron: 27.0.0
electron-builder: 24.6.4
electron-playwright-helpers: ^1.6.0
electron-store: ^8.1.0
Expand Down

0 comments on commit 54d486d

Please sign in to comment.