Skip to content

Commit

Permalink
omit selectedFields if field selection disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
josephkmh committed Jan 16, 2023
1 parent 706163d commit d311cb9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export const CatalogTreeBody: React.FC<CatalogTreeBodyProps> = ({ streams, chang
if (streamNode) {
const newStreamNode = setIn(streamNode, "config", { ...streamNode.config, ...newConfig });

// config.selectedFields must be removed if fieldSelection is disabled
if (!newStreamNode.config.fieldSelectionEnabled) {
delete newStreamNode.config.selectedFields;
}

onStreamChanged(newStreamNode);
}
},
Expand Down

0 comments on commit d311cb9

Please sign in to comment.