Skip to content

Commit

Permalink
revert optional status
Browse files Browse the repository at this point in the history
  • Loading branch information
maximpertsov committed Apr 18, 2023
1 parent e40b0f3 commit 91b5452
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/frontend/src/components/slam.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ const fetchSLAMMap = (name: string): Promise<Uint8Array> => {
const chunk = res.getPointCloudPcdChunk_asU8();
chunks.push(chunk);
});
getPointCloudMap.on('status', (status?) => {
const { code, details, metadata } = status!;
getPointCloudMap.on('status', ({ code, details, metadata }) => {
if (code !== 0) {
const error = { message: details, code, metadata };
reject(error);
Expand Down

0 comments on commit 91b5452

Please sign in to comment.