Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
406
Merge Requests
61
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
5d87644a
Commit
5d87644a
authored
3 minutes ago
by
Ben Hayward
Browse files
Options
Download
Handle errors from CommentsService
parent
7c1778f5
feat/socket-error-comments-2115
1 merge request
!692
[Sprint/TrendyTurtle](feat): Added in error message on socket connection breaking. #2115
Pipeline
#102083507
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
src/app/modules/comments/thread/thread.component.ts
View file @
5d87644a
...
...
@@ -110,22 +110,22 @@ export class CommentsThreadComponent implements OnInit {
let
el
=
this
.
scrollView
.
nativeElement
;
const
previousScrollHeightMinusTop
=
el
.
scrollHeight
-
el
.
scrollTop
;
let
response
:
any
=
<
{
comments
;
'
load-next
'
;
'
load-previous
'
;
socketRoomName
}
>
await
this
.
commentsService
.
get
({
entity_guid
:
this
.
guid
,
parent_path
,
level
:
this
.
level
,
limit
:
12
,
loadNext
:
descending
?
null
:
this
.
loadNext
,
loadPrevious
:
descending
?
this
.
loadPrevious
:
null
,
descending
,
})
.
catch
(
e
=>
console
.
error
(
e
)
);
if
(
!
response
)
{
this
.
inProgress
=
false
;
let
response
:
any
=
null
;
try
{
response
=
<
{
comments
;
'
load-next
'
;
'
load-previous
'
;
socketRoomName
}
>
(
await
this
.
commentsService
.
get
({
entity_guid
:
this
.
guid
,
parent_path
,
level
:
this
.
level
,
limit
:
12
,
loadNext
:
descending
?
null
:
this
.
loadNext
,
loadPrevious
:
descending
?
this
.
loadPrevious
:
null
,
descending
,
})
);
}
catch
(
e
)
{}
if
(
!
response
||
!
response
.
comments
)
{
return
;
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment