This commit is contained in:
CDeenen
2020-12-12 19:16:07 +01:00
parent 91e07e79c5
commit e62e82795b
4 changed files with 24 additions and 8 deletions

View File

@@ -359,8 +359,14 @@ export class soundboardConfigForm extends FormApplication {
else if (this.settings.selectedPlaylists[iteration] == 'FP') selectedPlaylist = 'FP';
else {
const pl = game.playlists.entities.find(p => p._id == this.settings.selectedPlaylists[iteration]);
selectedPlaylist = pl._id;
sounds = pl.sounds;
if (pl == undefined){
selectedPlaylist = 'none';
sounds = [];
}
else {
sounds = pl.sounds;
selectedPlaylist = pl._id;
}
}
let styleSS = "";
let styleFP ="display:none";