mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix falsy check in setting custom widget positions, closes #3060
This commit is contained in:
parent
201ef7fcd5
commit
aebdbdf8be
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user