Skip to content

Virtual whiteboard for sketching hand-drawn like diagrams

fix: prefer spreadsheet data over image (#4533)

David Luzard5a6014076d8
diff --git a/src/components/App.tsx b/src/components/App.tsx
index c5ec90a86f..cb89bac89a 100644
--- a/src/components/App.tsx
+++ b/src/components/App.tsx
@@ -1306,7 +1306,8 @@ class App extends React.Component<AppProps, AppState> {
}
}
- if (isSupportedImageFile(file)) {
+ // prefer spreadsheet data over image file (MS Office/Libre Office)
+ if (isSupportedImageFile(file) && !data.spreadsheet) {
const { x: sceneX, y: sceneY } = viewportCoordsToSceneCoords(
{ clientX: cursorX, clientY: cursorY },
this.state,