From d5bce89725bbad42cc1b653e27a8e4164572895f Mon Sep 17 00:00:00 2001 From: dohodin Date: Sun, 19 Mar 2023 16:41:20 +0100 Subject: [PATCH] Final Push --- src/view/team-add.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/view/team-add.js b/src/view/team-add.js index 7c2589a..651214f 100644 --- a/src/view/team-add.js +++ b/src/view/team-add.js @@ -1,8 +1,8 @@ export default { props: { teamAEdit: { - type: String, - require: true + require: true, + default: "" }, }, data: function() { @@ -41,7 +41,8 @@ export default { throw new StringSize("Name", NAME_MINIMAL_SIZE) } - const team = { id: this.id, name: this.name, description: this.description}; + const team = { id: this.id, name: this.name, description: this.description }; + if (this.teamAEdit != null) { @@ -55,7 +56,7 @@ export default { this.name = ''; this.description = ''; - }catch (error) { + } catch (error) { if (error instanceof RequiredFieldError) { this.errorMessage=error } @@ -64,7 +65,7 @@ export default { } return null; } - }, + } }, template: `