mirror of
https://github.com/zadam/trilium.git
synced 2024-09-22 16:46:09 +08: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…
Reference in a new issue