Skip to content

Fix library upload view if there was no prior import

Fixes the library view if there is no prior import. Otherwise there is a error

TypeError: t.fsStatus.import is null

This broke with 9d874073

I must say I don't fully understand the empty

<div v-if="fsStatus.import && (fsStatus.import.status === 'started' || fsStatus.import.status === 'pending')"></div>

Where is it used? I first thought it was an oversight, but it clearly has some functionality because if I remove it from the template the entire import from /music is missing. So I just blindly fixed the code :D

@jovuit Is this fix correct?

Merge request reports