kgabryje commented on code in PR #36062:
URL: https://github.com/apache/superset/pull/36062#discussion_r2542547563


##########
superset-frontend/plugins/legacy-preset-chart-deckgl/src/Multi/Multi.tsx:
##########
@@ -277,44 +297,94 @@ const DeckMulti = (props: DeckMultiProps) => {
     (
       formData: QueryFormData,
       payload: JsonObject,
-      viewport?: Viewport,
+      visibleLayers?: number[],
     ): void => {
       setViewport(getAdjustedViewport());
       setSubSlicesLayers({});
 
+      let visibleDeckLayers = visibleLayers;
+
+      if (!visibleDeckLayers) {
+        visibleDeckLayers = (
+          formData.extra_form_data as ExtraFormData & {
+            visible_deckgl_layers?: number[];

Review Comment:
   You created a similar type in QueryFormData.ts, can we use that?



-- 
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