diff --git a/src/views/dashboard/List.vue b/src/views/dashboard/List.vue index 8cd9fc3d..3ad81053 100644 --- a/src/views/dashboard/List.vue +++ b/src/views/dashboard/List.vue @@ -203,6 +203,9 @@ async function importTemplates(event: any) { dashboardFile.value = null; } function exportTemplates() { + if (!multipleSelection.value.length) { + return; + } const arr = multipleSelection.value.sort( (a: DashboardItem, b: DashboardItem) => { return a.name.localeCompare(b.name); diff --git a/src/views/dashboard/configuration/widget/MetricOptions.vue b/src/views/dashboard/configuration/widget/MetricOptions.vue index 7e6bc992..8df2ae8d 100644 --- a/src/views/dashboard/configuration/widget/MetricOptions.vue +++ b/src/views/dashboard/configuration/widget/MetricOptions.vue @@ -13,10 +13,10 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->