Commit 0f5a6237 authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

FIX: change error details to detail due to tank upgrade

parent d3701a6b
...@@ -1026,9 +1026,9 @@ export default { ...@@ -1026,9 +1026,9 @@ export default {
// if there was a 409 Conflict response it means, that this file is // if there was a 409 Conflict response it means, that this file is
// still used in one or more playlists. // still used in one or more playlists.
if (error.response.status === 409) { if (error.response.status === 409) {
let pls = error.response.data.details.playlists.length let pls = error.response.data.detail.playlists.length
let msg = 'Cannot delete file. Still used in ' + pls + ' playlists:\n\n' let msg = 'Cannot delete file. Still used in ' + pls + ' playlists:\n\n'
for (let pl of error.response.data.details.playlists) { for (let pl of error.response.data.detail.playlists) {
msg += 'ID: ' + pl.id msg += 'ID: ' + pl.id
if (pl.description) { if (pl.description) {
msg += ' (' + pl.description + ')' msg += ' (' + pl.description + ')'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment