Skip to content

Commit 253450f

Browse files
AmirMohammad CheraghaliAmirMohammad Cheraghali
authored andcommitted
Fix critical bug: Pass smoothSheetEnabled prop to ViewerComponent in App.tsx
1 parent f4bc4cf commit 253450f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,6 +2851,7 @@ function App() {
28512851
customColors={ctrl.customColors}
28522852
chainStyles={ctrl.chainStyles}
28532853
customStyles={ctrl.customStyles}
2854+
smoothSheetEnabled={ctrl.smoothSheetEnabled}
28542855
palette={colorPalette}
28552856
backgroundColor={
28562857
(isStudioMode && recorder.session?.metadata?.settings?.backgroundColor)

src/components/ProteinViewer.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2434,9 +2434,7 @@ export const ProteinViewer = forwardRef<ProteinViewerRef, ProteinViewerProps>(({
24342434
radialSegments: smoothSheetEnabled ? 20 : 10,
24352435
smoothSheet: !!smoothSheetEnabled
24362436
};
2437-
console.log("[ProteinViewer] Update - smoothSheetEnabled:", smoothSheetEnabled);
2438-
console.log("[ProteinViewer] Update - cartoonParams:", JSON.stringify(cartoonParams));
2439-
2437+
24402438
let globalParams = { ...params };
24412439
if (repType === 'cartoon') {
24422440
delete globalParams.quality;

0 commit comments

Comments
 (0)