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
1ae9f164
Verified
Commit
1ae9f164
authored
Aug 12, 2018
by
Sébastiaan Versteeg
Browse files
Fix switch state change in settings
parent
cfee4808
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/ui/screens/settings/NotificationsSection.js
View file @
1ae9f164
...
...
@@ -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