|
@@ -9,7 +9,7 @@ export default ListModule.action({
|
|
|
const totalLines = this.store.animate.totalLines;
|
|
|
const scrollType = this.store.animate.scrollType;
|
|
|
const items = await this.actions.loadData();
|
|
|
- if (!items) {
|
|
|
+ if (!items.length) {
|
|
|
return;
|
|
|
}
|
|
|
const scale = Math.max(devicePixelRatio, 2);
|
|
@@ -21,7 +21,6 @@ export default ListModule.action({
|
|
|
padding: this.store.animate.padding * scale,
|
|
|
linesCount: Math.ceil(items.length / totalLines) * 2,
|
|
|
};
|
|
|
- console.log(canvas);
|
|
|
this.store.canvas = { ...this.store.canvas, ...canvas };
|
|
|
|
|
|
if (scrollType == "vertical") {
|