Skip to content

Commit a623fa9

Browse files
author
dogatech
committed
fix song section not updating due to last mix change
1 parent 6b54cc0 commit a623fa9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

fe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "SoulSifter",
33
"version": "1.7.1",
44
"description": "DJ & music organization app.",
5-
"build": 3794,
5+
"build": 3796,
66
"main": "main.js",
77
"scripts": {
88
"fe:build": "vite build",

fe/src/song-section.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SongSection extends SearchOptionsMixin(SettingsMixin(SongEditMixin(SongMix
4343
<pitch-slider></pitch-slider>
4444
</div>
4545
<audio-player id="audio" .song="${this.song}" @song-ended="${this.songEnded}"></audio-player>
46-
${this.mix.comments ? html`<div>${this.mix.comments}<br><br></div>` : ''}
46+
${this.mix && this.mix.comments ? html`<div>${this.mix.comments}<br><br></div>` : ''}
4747
<div>${this.song.styles.map(s => s.name).join(', ')}</div>
4848
<div id="musicVideoThumbnail" draggable="true" @dragstart="${this.dragMusicVideo}" ?hide="${!this.musicVideo}"></div>
4949
${debugMode ? html`<div id="musicVideoInput" ?hide="${!!this.musicVideo}">
@@ -71,7 +71,7 @@ class SongSection extends SearchOptionsMixin(SettingsMixin(SongEditMixin(SongMix
7171
this.saveSongTrailListener = (e) => this.saveSongTrail(e);
7272
this.song = new ss.Song();
7373
this.song.album = new ss.Album();
74-
this.mix = new ss.Mix();
74+
this.mix = undefined;
7575
this.autoplay = false;
7676
}
7777

@@ -112,8 +112,6 @@ class SongSection extends SearchOptionsMixin(SettingsMixin(SongEditMixin(SongMix
112112
if (this.songTrail.length >= 2) {
113113
let len = this.songTrail.length;
114114
this.mix = ss.Mix.findByOutSongIdAndInSongId(this.songTrail[len - 2].songId, this.songTrail[len - 1].songId);
115-
} else {
116-
this.mix = new ss.Mix();
117115
}
118116
}
119117

0 commit comments

Comments
 (0)