From 323e4673716144bdd013a427ad68bb6b3b6c61c0 Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 27 Feb 2023 08:39:14 +0100 Subject: [PATCH] Updated node version --- Jenkinsfile | 8 ++++---- src/composables/useArrayData.js | 9 +-------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c4e87be4a..de26c7dd0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,8 +31,8 @@ pipeline { NODE_ENV = "" } steps { - nodejs('node-v14') { - sh 'npm install -g @quasar/cli' + nodejs('node-v18') { + // sh 'npm install -g @quasar/cli' sh 'npm install --no-audit --prefer-offline' } } @@ -48,7 +48,7 @@ pipeline { parallel { stage('Frontend') { steps { - nodejs('node-v14') { + nodejs('node-v18') { sh 'npm run test:unit:ci' } } @@ -64,7 +64,7 @@ pipeline { CREDENTIALS = credentials('docker-registry') } steps { - nodejs('node-v14') { + nodejs('node-v18') { sh 'quasar build' } dockerBuild() diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index c251a2915..2794d6806 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -1,4 +1,4 @@ -import { onMounted, onUnmounted, ref } from 'vue'; +import { onMounted, ref } from 'vue'; import { useRouter, useRoute } from 'vue-router'; import axios from 'axios'; import { useArrayDataStore } from 'stores/useArrayDataStore'; @@ -34,13 +34,6 @@ export function useArrayData(key, userOptions) { } }); - onUnmounted(() => { - // if (arrayDataStore.get(key)) { - // arrayDataStore.clear(key); - // } - // do stuff - }); - async function fetch({ append = false }) { if (!store.url) return;