Skip to content

Commit

Permalink
[fix] Fix examples
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta committed Feb 24, 2024
1 parent 55fb242 commit d06b89d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/demo-app/src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,16 @@ export const loadRemoteResourceSuccess = (state, action) => {
processorMethod = processArrowTable;
}

let unprocessedData = action.response;
if (unprocessedData?.shape === 'object-row-table') {
unprocessedData = unprocessedData.data;
}

const datasets = {
info: {
id: datasetId
},
data: processorMethod(action.response)
data: processorMethod(unprocessedData)
};

const config = action.config ? KeplerGlSchema.parseSavedConfig(action.config) : null;
Expand Down

0 comments on commit d06b89d

Please sign in to comment.