From 4be562471c45ac63469c2537989624d8764a7cf8 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 3 Apr 2021 17:31:51 +0200 Subject: [PATCH] Update CustomStatusPresets.plugin.js --- Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js b/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js index 32e1bf3a99..3e65e2f51d 100644 --- a/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js +++ b/Plugins/CustomStatusPresets/CustomStatusPresets.plugin.js @@ -131,7 +131,7 @@ module.exports = (_ => { this.props.dragPreview.style.setProperty("top", event.clientY - 25 + "px", "important"); } render() { - return !this.props.entries.length ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextElement, { + return !Object.keys(this.props.entries).length ? BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.TextElement, { children: "You haven't added any Custom Status Presets. You can add some via the Custom Status Modal, where you usually configure your Custom Status." }) : Object.keys(BDFDB.ObjectUtils.sort(this.props.entries, this.props.sortKey)).map(id => [ this.props.hovered == id && BDFDB.ReactUtils.createElement("div", {