Skip to content

Commit

Permalink
filter out tags that have a non-falsey source value
Browse files Browse the repository at this point in the history
Signed-off-by: gitdallas <dallas.nicol@gmail.com>
  • Loading branch information
gitdallas committed Sep 26, 2023
1 parent 431d8b4 commit 53069c0
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,14 @@ export const ApplicationForm: React.FC<ApplicationFormProps> = ({
}, []);

const tagOptions =
tags?.map((tag) => {
return {
value: tag.name,
toString: () => tag.name,
};
}) || [];
tags
?.filter((tag) => !tag.source)
.map((tag) => {
return {

Check warning on line 113 in client/src/app/pages/applications/components/application-form/application-form.tsx

View check run for this annotation

Codecov / codecov/patch

client/src/app/pages/applications/components/application-form/application-form.tsx#L111-L113

Added lines #L111 - L113 were not covered by tests
value: tag.name,
toString: () => tag.name,

Check warning on line 115 in client/src/app/pages/applications/components/application-form/application-form.tsx

View check run for this annotation

Codecov / codecov/patch

client/src/app/pages/applications/components/application-form/application-form.tsx#L115

Added line #L115 was not covered by tests
};
}) || [];

const getBinaryInitialValue = (
application: Application | null,
Expand Down

0 comments on commit 53069c0

Please sign in to comment.