Skip to content

Commit

Permalink
fix sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-tennert committed Sep 26, 2024
1 parent 251ccb9 commit 105d0ae
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ class UploadViewModel(
file.dataProducer,
file.path ?: file.name,
file.getSize() ?: error("Invalid file"),
path,
true
)
path
) {
upsert = true
}
uploads[upload.fingerprint] = upload
uploadItems.value = uploadItems.value.map {
if(it.fingerprint == upload.fingerprint) UploadState.Loaded(upload.fingerprint, upload.stateFlow.value) else it
Expand Down

0 comments on commit 105d0ae

Please sign in to comment.