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:
parent
7c6ab84405
commit
9e86e1a5fe
|
|
@ -193,10 +193,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
resourceToAddOrEdit() {
|
||||
if (this.resourceToEdit) {
|
||||
return this.resourceToEdit;
|
||||
}
|
||||
return this.resource;
|
||||
return this.resourceToEdit || this.resource;
|
||||
},
|
||||
},
|
||||
components: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue