rusackas commented on code in PR #42126:
URL: https://github.com/apache/superset/pull/42126#discussion_r3618557008


##########
superset-frontend/plugins/preset-chart-deckgl/src/layers/Contour/Contour.tsx:
##########
@@ -69,13 +68,8 @@ export const getLayer: GetLayerType<ContourLayer> = function 
({
   emitCrossFilters,
 }) {
   const fd = formData;
-  const {
-    aggregation = 'SUM',
-    js_data_mutator: jsFnMutator,
-    contours: rawContours,
-    cellSize = '200',
-  } = fd;
-  let data = payload.data.features;
+  const { aggregation = 'SUM', contours: rawContours, cellSize = '200' } = fd;

Review Comment:
   I think Codeant is off here. `rawContours` is optional-chained 
(`rawContours?.map(...)`), so a missing value just makes `contours` undefined 
rather than throwing. It only ever gets passed straight into `ContourLayer`, 
nothing after that maps or indexes into it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to