This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
3
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Do not cause an error if domain_lists.blocks.next is undefined (
#8021
)
A valid URL is always truthy, so we can simplify this check
pull/4/head
ThibG
5 years ago
committed by
Eugen Rochko
parent
0eacf2b419
commit
d0d23b8f0a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/javascript/mastodon/actions/domain_blocks.js
+ 1
- 1
app/javascript/mastodon/actions/domain_blocks.js
View File
@ -128,7 +128,7 @@ export function expandDomainBlocks() {
return
(
dispatch
,
getState
)
=>
{
const
url
=
getState
(
)
.
getIn
(
[
'domain_lists'
,
'blocks'
,
'next'
]
)
;
if
(
url
===
nul
l
)
{
if
(
!
ur
l
)
{
return
;
}
Write
Preview
Loading…
Cancel
Save