Bug 38201: Improve code

(cherry picked from commit 38f6133e68e4f514954c7ed073f186abc5f86783)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-04-08 11:39:36 +02:00 committed by Lucas Gass
parent 7c6ab84405
commit 9e86e1a5fe
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 1 additions and 4 deletions

View File

@ -193,10 +193,7 @@ export default {
},
computed: {
resourceToAddOrEdit() {
if (this.resourceToEdit) {
return this.resourceToEdit;
}
return this.resource;
return this.resourceToEdit || this.resource;
},
},
components: {