Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/NFDI4Chem/nmrxiv into prod-…
Browse files Browse the repository at this point in the history
…helm-deploy
  • Loading branch information
NishaSharma14 committed Feb 9, 2024
2 parents 063af92 + 8c8a8fc commit f565299
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [1.0.3](https://github.com/NFDI4Chem/nmrxiv/compare/v1.0.2...v1.0.3) (2024-02-09)


### Bug Fixes

* handle null study download url ([7352381](https://github.com/NFDI4Chem/nmrxiv/commit/7352381c5285bdaa3f4a49059acc03bafd704de0))
* hide organism if null ([5c7abb5](https://github.com/NFDI4Chem/nmrxiv/commit/5c7abb550f92759d5b3d8eb4b1367bd13cae7b55))

## [1.0.2](https://github.com/NFDI4Chem/nmrxiv/compare/v1.0.1...v1.0.2) (2024-02-06)


Expand Down
2 changes: 1 addition & 1 deletion app/Models/FileSystemObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class FileSystemObject extends Model
public function getDownloadUrlAttribute()
{
if ($this->model_type == 'study') {
return $this->study->download_url;
return $this->study ? $this->study->download_url : null;
}
}

Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Public/Project/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
</div>

<div v-if="project.data.species" class="pt-2">
<div v-if="project.data.species && project.data.species.length > 0" class="pt-2">
<h3 class="text-xl font-extrabold text-blue-gray-900">
Organism
</h3>
Expand Down

0 comments on commit f565299

Please sign in to comment.