Skip to content

Commit

Permalink
remove tag status
Browse files Browse the repository at this point in the history
  • Loading branch information
braydonwang committed Nov 30, 2023
1 parent 37491b1 commit 01eafb2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion frontend/src/components/forms/CreateLog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ const CreateLog = ({ getRecords, countRecords, setUserPageNum }: Props) => {
const tagsData = await TagAPIClient.getTags();
if (tagsData && tagsData.tags.length !== 0) {
const tagLabels: TagLabel[] = tagsData.tags
.filter((tag) => tag.status === "Active")
.map((tag) => ({
label: tag.name,
value: tag.tagId,
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/pages/HomePage/LogRecordsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ const LogRecordsTable = ({
const tagsData = await TagAPIClient.getTags();
if (tagsData && tagsData.tags.length !== 0) {
const tagLabels: TagLabel[] = tagsData.tags
.filter((tag) => tag.status === "Active")
.map((tag) => ({
label: tag.name,
value: tag.tagId,
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/types/TagTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
export type Tag = {
tagId: number;
name: string;
status: TagStatus;
};

export type TagLabel = {
Expand All @@ -13,8 +12,3 @@ export type TagLabel = {
export type GetTagsResponse = {
tags: Tag[];
} | null;

export enum TagStatus {
ACTIVE = "Active",
DELETED = "Deleted",
}

0 comments on commit 01eafb2

Please sign in to comment.