Skip to content

Commit 800b195

Browse files
committed
fix: ensure animation has a name before setting zIndex
1 parent 3bbd5b4 commit 800b195

File tree

1 file changed

+1
-1
lines changed
  • packages/app-page-builder/src/editor/contexts/EditorPageElementsProvider/modifiers/styles

1 file changed

+1
-1
lines changed

packages/app-page-builder/src/editor/contexts/EditorPageElementsProvider/modifiers/styles/animationZIndexFix.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ElementAttributesModifier } from "@webiny/app-page-builder-elements/typ
1010
export const createAnimationZIndexFix = () => {
1111
const animation: ElementAttributesModifier = ({ element }) => {
1212
const animation = element.data.settings?.animation;
13-
if (animation) {
13+
if (animation && animation.name) {
1414
return { zIndex: 1 };
1515
}
1616
return null;

0 commit comments

Comments
 (0)