Skip to content

Commit

Permalink
Merge pull request #3155 from CVEProject/dr_attempted_fix
Browse files Browse the repository at this point in the history
the one where dave does not know how to code
  • Loading branch information
jdaigneau5 authored Oct 11, 2024
2 parents 75caabe + 400e89a commit 9982416
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stores/cveListSearch.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineStore } from 'pinia';
import { useGenericGlobalsStore } from './genericGlobals';
import axios from 'axios';

export const useCveListSearchStore = defineStore('cveListSearch ', {
Expand Down Expand Up @@ -108,7 +109,7 @@ export const useCveListSearchStore = defineStore('cveListSearch ', {
const getRecordUrl = `/api/cve/${this.cveId}`;

try {
axios.defaults.baseURL = useCveListSearchStore().currentServicesUrl;
axios.defaults.baseURL = useGenericGlobalsStore().currentServicesUrl;
const response = await axios.get(getRecordUrl);
const cveRecordData = response?.data || {};
this.isArecord = true;
Expand Down

0 comments on commit 9982416

Please sign in to comment.