axiosInstance replaced with apiCall

This commit is contained in:
Jan Prochazka
2021-12-22 10:16:44 +01:00
parent 148af24b2c
commit f9c54cdce2
55 changed files with 257 additions and 328 deletions

View File

@@ -20,6 +20,7 @@
<script lang="ts">
import { onMount, afterUpdate, onDestroy } from 'svelte';
import registerCommand from '../commands/registerCommand';
import { apiCall } from '../utility/api';
import axiosInstance from '../utility/axiosInstance';
import contextMenu, { getContextMenu, registerMenu } from '../utility/contextMenu';
@@ -61,7 +62,7 @@
export async function exportChart() {
saveFileToDisk(async filePath => {
await axiosInstance().post('files/export-chart', {
await apiCall('files/export-chart', {
title,
filePath,
config: {