diff --git a/src/components/EditMenu.vue b/src/components/EditMenu.vue
index abafcedfd..fa6d4f3d2 100644
--- a/src/components/EditMenu.vue
+++ b/src/components/EditMenu.vue
@@ -63,7 +63,7 @@
Object.values(WidgetType))
const selectedWidgetType = ref()
-const selectedProfile = ref(store.currentProfile)
const selectedLayer = ref(store.currentProfile.layers[0])
const newProfileName = ref('')
const newProfileForm = ref(false)
@@ -205,11 +204,6 @@ const availableLayers = computed(() =>
)
const loadProfile = (): void => {
- if (selectedProfile.value === undefined) {
- console.warn('Cannot load profile. No profile selected.')
- return
- }
- store.loadProfile(selectedProfile.value)
selectedLayer.value = store.currentProfile.layers[0]
}
const createNewProfile = async (): Promise => {
@@ -217,7 +211,6 @@ const createNewProfile = async (): Promise => {
try {
const newProfile = store.saveProfile(newProfileName.value, JSON.parse(JSON.stringify(store.currentProfile.layers)))
store.loadProfile(newProfile)
- selectedProfile.value = store.currentProfile
newProfileName.value = ''
profileCreationDialog.confirm()
} catch (error) {