mirror of
https://github.com/zadam/trilium.git
synced 2025-12-24 17:20:04 +01:00
fix falsy check in setting custom widget positions, closes #3060
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user