Skip to content

Commit

Permalink
Fix server problem in data.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewwallacespeckle committed Dec 12, 2024
1 parent 23979d8 commit 6003cf5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/server/modules/comments/services/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
import { LegacyCommentViewerData } from '@/modules/core/graph/generated/graphql'
import { viewerResourcesToString } from '@/modules/core/services/commit/viewerResources'
import { Nullable, SpeckleViewer } from '@speckle/shared'
import { ViewMode } from '@speckle/viewer'
import { has, get, intersection, isObjectLike } from 'lodash'

type SerializedViewerState = SpeckleViewer.ViewerState.SerializedViewerState
Expand Down Expand Up @@ -156,6 +157,7 @@ export const convertLegacyDataToStateFactory =
isOrthoProjection: !!data.camPos?.[6],
zoom: data.camPos?.[7] || 1
},
viewMode: ViewMode.DEFAULT,
sectionBox: sectionBox
? {
min: (sectionBox.min as number[]) || [0, 0, 0],
Expand Down

0 comments on commit 6003cf5

Please sign in to comment.