From aebdbdf8befcde535cbeca454d83e1bbb4f5a8ff Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 14 Aug 2022 15:00:18 +0200 Subject: [PATCH] fix falsy check in setting custom widget positions, closes #3060 --- src/public/app/widgets/containers/container.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/public/app/widgets/containers/container.js b/src/public/app/widgets/containers/container.js index 7703e2eae..f51ddce27 100644 --- a/src/public/app/widgets/containers/container.js +++ b/src/public/app/widgets/containers/container.js @@ -17,7 +17,7 @@ export default class Container extends BasicWidget { super.child(...components); for (const component of components) { - if (!component.position) { + if (component.position === undefined) { component.position = this.positionCounter; this.positionCounter += 10; }