Skip to content

Commit

Permalink
Test fixes for not loading data from back-end in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppe99barchetta committed Oct 23, 2024
1 parent 406242c commit 535f7b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions suggestarr-frontend/src/components/ConfigWizard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default {
// Fetch the existing configuration from the backend
async fetchConfig() {
try {
const { data } = await axios.get('http://localhost:5000/api/config/fetch');
const { data } = await axios.get('/api/config/fetch');
if (data) {
this.config = data;
if (this.config.TMDB_API_KEY || this.config.JELLYFIN_API_URL || this.config.JELLYFIN_TOKEN) {
Expand All @@ -123,7 +123,7 @@ export default {
// Save the configuration to the backend
async saveConfig() {
try {
await axios.post('http://localhost:5000/api/config/save', this.config);
await axios.post('/api/config/save', this.config);
this.currentStep = this.steps.length + 1; // Move to summary after saving
} catch (error) {
console.error('Error saving configuration:', error);
Expand Down

0 comments on commit 535f7b1

Please sign in to comment.