Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
ThaliApp
Commits
8747421c
Commit
8747421c
authored
Aug 12, 2018
by
Sébastiaan Versteeg
Browse files
Merge branch 'fix/settings-notifications-switch' into 'master'
Fix switch state change in settings See merge request
!188
parents
cfee4808
1ae9f164
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/ui/screens/settings/NotificationsSection.js
View file @
8747421c
...
...
@@ -18,8 +18,8 @@ class NotificationsSection extends Component {
this
.
state
=
{};
}
static
getDerivedStateFromProps
=
(
props
)
=>
{
if
(
props
.
status
!==
'
success
'
)
{
static
getDerivedStateFromProps
=
(
props
,
state
)
=>
{
if
(
props
.
status
!==
'
success
'
||
Object
.
keys
(
state
).
length
>
0
)
{
return
null
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment