From 7352381c5285bdaa3f4a49059acc03bafd704de0 Mon Sep 17 00:00:00 2001 From: Venkata Chandra Sekhar Nainala Date: Fri, 9 Feb 2024 16:14:35 +0530 Subject: [PATCH 1/3] fix: handle null study download url --- app/Models/FileSystemObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/FileSystemObject.php b/app/Models/FileSystemObject.php index 87e4fc2c..b355d5ba 100644 --- a/app/Models/FileSystemObject.php +++ b/app/Models/FileSystemObject.php @@ -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; } } From 5c7abb550f92759d5b3d8eb4b1367bd13cae7b55 Mon Sep 17 00:00:00 2001 From: NishaSharma14 Date: Fri, 9 Feb 2024 11:57:07 +0100 Subject: [PATCH 2/3] fix: hide organism if null --- resources/js/Pages/Public/Project/Show.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/js/Pages/Public/Project/Show.vue b/resources/js/Pages/Public/Project/Show.vue index d9872e42..27c3b88e 100644 --- a/resources/js/Pages/Public/Project/Show.vue +++ b/resources/js/Pages/Public/Project/Show.vue @@ -32,7 +32,7 @@ -
+

Organism

From 9e778ff7c2baf94d40926e95ea4515d7c94e8979 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 11:02:02 +0000 Subject: [PATCH 3/3] chore(main): release 1.0.3 --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2dc5dcd..12c013c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)