We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fa7b77 commit 58daef9Copy full SHA for 58daef9
lib/index.js
@@ -518,8 +518,8 @@ carbone.addFormatters(require("../formatters/number.js"));
518
carbone.addFormatters(require("../formatters/string.js"));
519
carbone.addFormatters({
520
drop: function (data, args) {
521
- // Check if the first argument is 'slide' and if the data is empty
522
- if (args[0] === "slide" && (!data || data.trim() === "")) {
+ // Check if the first argument is 'slide' and if the data is not empty
+ if (args[0] === "slide" && data && data.trim() !== "") {
523
// Set a flag in the context to indicate that the slide should be dropped
524
this.isHidden = true;
525
}
0 commit comments