From 933de6e2c56c268cf7b6b56882f736232ffdd369 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 26 Aug 2018 19:30:56 +0200 Subject: [PATCH] Fixed event handlers not properly called --- .eslintrc | 1 + src/short-urls/helpers/EditTagsModal.js | 4 ++-- src/tags/helpers/EditTagModal.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc b/.eslintrc index 5aa91eab..8839bdef 100644 --- a/.eslintrc +++ b/.eslintrc @@ -22,6 +22,7 @@ "rules": { "comma-dangle": ["error", "always-multiline"], "no-invalid-this": "off", + "no-console": "warn", "template-curly-spacing": ["error", "never"], "no-warning-comments": "off", "no-undefined": "off", diff --git a/src/short-urls/helpers/EditTagsModal.js b/src/short-urls/helpers/EditTagsModal.js index 8eda0b9c..0a8e95d0 100644 --- a/src/short-urls/helpers/EditTagsModal.js +++ b/src/short-urls/helpers/EditTagsModal.js @@ -62,7 +62,7 @@ export class EditTagsModalComponent extends React.Component { const { isOpen, toggle, url, shortUrlTags } = this.props; return ( - this.refreshShortUrls}> + this.refreshShortUrls()}> Edit tags for {url} @@ -80,7 +80,7 @@ export class EditTagsModalComponent extends React.Component { className="btn btn-primary" type="button" disabled={shortUrlTags.saving} - onClick={() => this.saveTags} + onClick={() => this.saveTags()} > {shortUrlTags.saving ? 'Saving tags...' : 'Save tags'} diff --git a/src/tags/helpers/EditTagModal.js b/src/tags/helpers/EditTagModal.js index 5c12d67b..defbef5d 100644 --- a/src/tags/helpers/EditTagModal.js +++ b/src/tags/helpers/EditTagModal.js @@ -74,7 +74,7 @@ export class EditTagModalComponent extends React.Component { return ( -
this.saveTag()}> + this.saveTag(e)}> Edit tag