Skip to content

Commit cb2219b

Browse files
committed
fix conditional
1 parent 65c66a1 commit cb2219b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/components/WaveSurfer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default {
143143
*
144144
*/
145145
loadFile($event) {
146-
if (!!$event.file ) {
146+
if ($event.file?.fullPath) {
147147
this.isPlaying = false;
148148
this.hasFile = true;
149149
fs.readFile($event.file.fullPath, {}, (err, data) => {

0 commit comments

Comments
 (0)