Skip to content

Commit 58daef9

Browse files
author
jumptuner
committed
fix drop ifem
1 parent 3fa7b77 commit 58daef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,8 +518,8 @@ carbone.addFormatters(require("../formatters/number.js"));
518518
carbone.addFormatters(require("../formatters/string.js"));
519519
carbone.addFormatters({
520520
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() === "")) {
521+
// Check if the first argument is 'slide' and if the data is not empty
522+
if (args[0] === "slide" && data && data.trim() !== "") {
523523
// Set a flag in the context to indicate that the slide should be dropped
524524
this.isHidden = true;
525525
}

0 commit comments

Comments
 (0)