diff --git a/src/views/dashboard/Edit.vue b/src/views/dashboard/Edit.vue
index 1b55b6a9..f780a3f9 100644
--- a/src/views/dashboard/Edit.vue
+++ b/src/views/dashboard/Edit.vue
@@ -65,6 +65,13 @@ async function setTemplate() {
dashboardStore.setLayout(layout.children || []);
appStore.setPageTitle(layout.name);
+ if (!dashboardStore.currentDashboard) {
+ dashboardStore.setCurrentDashboard({
+ layer: p.layerId,
+ entity: p.layerId,
+ name: p.name,
+ });
+ }
}
function handleClick(e: any) {
e.stopPropagation();
diff --git a/src/views/dashboard/configuration/Widget.vue b/src/views/dashboard/configuration/Widget.vue
index 9ca4b448..48fc4ee2 100644
--- a/src/views/dashboard/configuration/Widget.vue
+++ b/src/views/dashboard/configuration/Widget.vue
@@ -53,7 +53,7 @@ limitations under the License. -->
-
+
diff --git a/src/views/dashboard/configuration/widget/MetricOptions.vue b/src/views/dashboard/configuration/widget/MetricOptions.vue
index 15e062aa..29a423eb 100644
--- a/src/views/dashboard/configuration/widget/MetricOptions.vue
+++ b/src/views/dashboard/configuration/widget/MetricOptions.vue
@@ -13,11 +13,11 @@ 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. -->
-