Dashboard Import from external JSON

We are trying to make dashboard.uid as null for dashboards, so that whenever we will import it for new datasource, it will create new dashboard for that datasource.

With this change, new dashboards are created as per datasource after importing, however, empty rows are added for those newly created dashboard as shown in below screenshot. Any idea how to resolve this issue?


image