Skip to content

Commit

Permalink
[ML] Rename entityControlsCount
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Nov 20, 2020
1 parent f563169 commit be00afc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ export const PlotByFunctionControls = ({
selectedDetectorIndex,
selectedJobId,
selectedEntities,
entityControlsCnt,
entityControlsCount,
}: {
functionDescription: undefined | string;
setFunctionDescription: (func: string) => void;
selectedDetectorIndex: number;
selectedJobId: string;
selectedEntities: Record<string, any>;
entityControlsCnt: number;
entityControlsCount: number;
}) => {
const toastNotificationService = useToastNotificationService();

Expand Down Expand Up @@ -78,7 +78,7 @@ export const PlotByFunctionControls = ({
// if no controls, it's okay to fetch
// if there are series controls, only fetch if user has selected something
const validEntities =
entityControlsCnt === 0 || (entityControlsCnt > 0 && selectedEntities !== undefined);
entityControlsCount === 0 || (entityControlsCount > 0 && selectedEntities !== undefined);
if (
validEntities &&
functionDescription === undefined &&
Expand All @@ -100,7 +100,7 @@ export const PlotByFunctionControls = ({
selectedEntities,
selectedJobId,
functionDescription,
entityControlsCnt,
entityControlsCount,
]);

if (functionDescription === undefined) return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export const SeriesControls: FC<SeriesControlsProps> = ({
selectedEntities={selectedEntities}
functionDescription={functionDescription}
setFunctionDescription={setFunctionDescription}
entityControlsCnt={entityControls.length}
entityControlsCount={entityControls.length}
/>

{children}
Expand Down

0 comments on commit be00afc

Please sign in to comment.