Update CSV data fetching to use API endpoint in Mannschaften components
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 5s
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Failing after 5s
This commit modifies the loadMannschaften function across multiple components to fetch CSV data from the new API endpoint '/api/mannschaften' instead of the previous static file path '/data/mannschaften.csv'. This change enhances data retrieval consistency and aligns with the updated data management strategy in the application.
This commit is contained in:
@@ -508,7 +508,7 @@ function getPendingSpielerNamesForTeamIndex(teamIndex) {
|
||||
const loadMannschaften = async () => {
|
||||
isLoading.value = true
|
||||
try {
|
||||
const csv = await fetchCsvText('/data/mannschaften.csv')
|
||||
const csv = await fetchCsvText('/api/mannschaften')
|
||||
const lines = csv.split('\n').filter(line => line.trim() !== '')
|
||||
|
||||
if (lines.length < 2) {
|
||||
|
||||
Reference in New Issue
Block a user