From ae75f54e55e64224b1892a4408517478649048f8 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Tue, 25 Jun 2024 13:38:23 -0300 Subject: [PATCH] configuration-logs: Remove redundant code Prevents updates on one part of the code that brakes the other that is not connected to it. --- src/views/ConfigurationLogsView.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/ConfigurationLogsView.vue b/src/views/ConfigurationLogsView.vue index 107385ad2..5d1e80f5a 100644 --- a/src/views/ConfigurationLogsView.vue +++ b/src/views/ConfigurationLogsView.vue @@ -321,10 +321,12 @@ const updateVariables = (): void => { onMounted(updateVariables) +const otherAvailableLoggingElements = ['Mission name', 'Time', 'Date'] + const loggedVariables = ref([]) const originalLoggedVariables = ref([]) -const otherLoggingElements = ref(['Mission name', 'Time', 'Date']) -const originalOtherLoggingElements = ref(['Mission name', 'Time', 'Date']) +const otherLoggingElements = ref(otherAvailableLoggingElements) +const originalOtherLoggingElements = ref(otherAvailableLoggingElements) const newFrequency = ref(1000 / datalogger.logInterval.value) const selectedTab = ref('telemetry') const variablesPanel = ref([]) @@ -439,7 +441,7 @@ const resetAllChips = (): void => { RightBottom: [], } - otherLoggingElements.value = ['Mission name', 'Time', 'Date'] + otherLoggingElements.value = otherAvailableLoggingElements customMessageElements.value = [...customMessageElementsBackup, ...customMessageElements.value] updateVariables() }