From ac4ae9bb4d524c5ceeb6be26f4de0fadfc36fe10 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 23 Jul 2023 03:09:57 +0300 Subject: [PATCH] Fixed: Ensure Monitoring Options resets to No Change (cherry picked from commit 180153cd8440df88c9aa5694c67c6cae537dc595) --- .../Author/MonitoringOptions/MonitoringOptionsModalContent.js | 2 +- frontend/src/Bookshelf/BookshelfFooter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/Author/MonitoringOptions/MonitoringOptionsModalContent.js b/frontend/src/Author/MonitoringOptions/MonitoringOptionsModalContent.js index 2578649a0..986541548 100644 --- a/frontend/src/Author/MonitoringOptions/MonitoringOptionsModalContent.js +++ b/frontend/src/Author/MonitoringOptions/MonitoringOptionsModalContent.js @@ -33,7 +33,7 @@ class MonitoringOptionsModalContent extends Component { const { isSaving, saveError - } = prevProps; + } = this.props; if (prevProps.isSaving && !isSaving && !saveError) { this.setState({ diff --git a/frontend/src/Bookshelf/BookshelfFooter.js b/frontend/src/Bookshelf/BookshelfFooter.js index c04e14216..63bf84bb1 100644 --- a/frontend/src/Bookshelf/BookshelfFooter.js +++ b/frontend/src/Bookshelf/BookshelfFooter.js @@ -30,7 +30,7 @@ class BookshelfFooter extends Component { const { isSaving, saveError - } = prevProps; + } = this.props; if (prevProps.isSaving && !isSaving && !saveError) { this.setState({