Skip to content

Commit

Permalink
Add check for null in websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Jan 26, 2024
1 parent 99b80be commit ec2eaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sci-log-db/src/utils/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export async function startWebsocket(app: SciLogDbApplication) {
if (document?.snippetType === 'logbook') {
sendSocketMessage(document._id);
return document._id;
} else if (document.parentId) {
} else if (document?.parentId) {
findParentLogbook(db, document.parentId, sendSocketMessage).then(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(d: any) => {
Expand Down

0 comments on commit ec2eaaf

Please sign in to comment.