Skip to content

Commit

Permalink
HPCC-30462 ECL Watch v9 add packagemap targets dropdown
Browse files Browse the repository at this point in the history
options should use target names as label/value, rather than target types

Signed-off-by: Jeremy Clements <[email protected]>
  • Loading branch information
jeclrsg committed Oct 19, 2023
1 parent 71a73b6 commit 83bb1f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esp/src/src-react/components/PackageMaps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ export const PackageMaps: React.FunctionComponent<PackageMapsProps> = ({
const _targets: TypedDropdownOption[] = [{ key: "*", text: "ANY" }];
const _processes: TypedDropdownOption[] = [{ key: "*", text: "ANY" }];
Targets?.TargetData.map(target => {
if (_targets.filter(t => t.key === target.Type).length === 0) {
_targets.push({ key: target.Type, text: target.Type, type: target.Type });
if (_targets.filter(t => t.key === target.Name).length === 0) {
_targets.push({ key: target.Name, text: target.Name, type: target.Type });
}
target?.Processes?.Item.map(item => {
if (_processes.filter(p => p.key === item).length === 0) {
Expand Down

0 comments on commit 83bb1f1

Please sign in to comment.