Skip to content

Commit

Permalink
Merge pull request le5le-com#196 from Plortinus/main
Browse files Browse the repository at this point in the history
fixed:data = [] bug
  • Loading branch information
Alsmile committed Aug 1, 2023
2 parents 4771fe8 + 198a35b commit edef9da
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1840,6 +1840,9 @@ export class Meta2d {
if (!Array.isArray(data)) {
data = [data];
}
if (!data.length) {
return;
}
if (data[0].dataId) {
this.setDatas(data);
} else {
Expand Down

0 comments on commit edef9da

Please sign in to comment.