Skip to content

Commit 8d0b1bf

Browse files
committed
clean injected modifiers object from empty values
1 parent d5c1aa9 commit 8d0b1bf

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

src/commons/modifiers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export function generateModifiersStyle(options = {
365365
style.positionStyle = extractPositionStyle(boundProps);
366366
}
367367

368-
return style;
368+
return _.omitBy(style, _.isEmpty); // clean empty objects and undefined
369369
}
370370

371371
export function getAlteredModifiersOptions(currentProps: any, nextProps: any) {

0 commit comments

Comments
 (0)