diff --git a/changelog.md b/changelog.md
index 64cf0a9..400b6ad 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,19 +1,28 @@
# Changelog Material Deck Module
+### v1.1.1 - 09-12-2020
+Fixes
+
+- Fixed issue where deleting a playlist would cause an error preventing the Soundboard Configuration to show up
+
+
+Compatible server app and SD plugin:
+Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases
+SD plugin v1.1.0 (unchanged): https://github.com/CDeenen/MaterialDeck_SD/releases
+
### v1.1.0 - 09-12-2020
Fixes
- Settings would not show for Combat Tracker action
- Macro Action => Macro Board default settings fixed
-
-Additions/changes:
+- API has been improved, making integration with other hardware/software easier, and making future changes/additions easier
+
+Additions:
- Added support for Pathfinder 1e and Shadow of the Demon Lord
- All dialogs that are openable using the SD can now be closed by pressing the button while the dialog is open
- Playlist Action & Soundboard Action => Stop All now indicates if there are tracks/playlists/sounds playing
- Confirmed Foundry 0.7.8 compatibility
-- API has been improved, making integration with other hardware/software easier, and making future changes/additions easier
-- Moved default images to Foundry module side instead of Stream Deck plugin
-
+
Compatible server app and SD plugin:
Material Server v1.0.2 (unchanged): https://github.com/CDeenen/MaterialServer/releases
diff --git a/module.json b/module.json
index a6beab0..38618cd 100644
--- a/module.json
+++ b/module.json
@@ -2,7 +2,7 @@
"name": "MaterialDeck",
"title": "Material Deck",
"description": "Material Deck allows you to control Foundry using an Elgato Stream Deck",
- "version": "1.1.0",
+ "version": "1.1.1",
"author": "CDeenen",
"esmodules": [
"./MaterialDeck.js"
diff --git a/src/macro.js b/src/macro.js
index 87a8f06..5a17205 100644
--- a/src/macro.js
+++ b/src/macro.js
@@ -65,6 +65,7 @@ export class MacroControl{
if (macroId != undefined){
let macro = game.macros._source.find(p => p._id == macroId);
if (macro != undefined) {
+ console.log(macro);
name += macro.name;
src += macro.img;
}
diff --git a/src/misc.js b/src/misc.js
index 73f1e65..26b222b 100644
--- a/src/misc.js
+++ b/src/misc.js
@@ -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";