Skip to content

Commit

Permalink
Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed May 16, 2022
1 parent 4277f42 commit e40b368
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ export const xyVisFn: XyVisFn['fn'] = async (data, args, handlers) => {
...restArgs
} = args;

validateAccessor(xAccessor, data.columns);
validateAccessor(splitAccessor, data.columns);
accessors.forEach((accessor) => validateAccessor(accessor, data.columns));

const dataLayers: DataLayerConfigResult[] = [createDataLayer(args, data)];

validateAccessor(dataLayers[0].xAccessor, data.columns);
validateAccessor(dataLayers[0].splitAccessor, data.columns);
dataLayers[0].accessors.forEach((accessor) => validateAccessor(accessor, data.columns));

const layers: XYLayerConfig[] = [
...appendLayerIds(dataLayers, 'dataLayers'),
...appendLayerIds(referenceLineLayers, 'referenceLineLayers'),
Expand Down

0 comments on commit e40b368

Please sign in to comment.