Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 55478b9

Browse files
author
edison-nguyen
committed
changes for #15
1 parent 822494b commit 55478b9

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

client/src/lib/company-attributes.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,6 @@ import config from "../config";
33
import * as OrgService from "../services/user-org";
44
import Axios from "axios";
55

6-
let primaryAttributeIds = [
7-
config.STANDARD_USER_ATTRIBUTES.location,
8-
config.STANDARD_USER_ATTRIBUTES.isAvailable,
9-
config.STANDARD_USER_ATTRIBUTES.title,
10-
config.STANDARD_USER_ATTRIBUTES.company,
11-
];
12-
136
/**
147
* Get the attributes associated with the company (organization)
158
* @param {Object} apiClient The api client (you can get this from src/services/api and then call api() to get the apiClient)
@@ -70,14 +63,5 @@ export async function getCompanyAttributes(apiClient, cancelToken) {
7063
}
7164
}
7265

73-
// Finally, we only need the company attributes
74-
attributes = attributes.filter((attribute) => {
75-
if (primaryAttributeIds.includes(attribute.name)) {
76-
return false;
77-
}
78-
79-
return true;
80-
});
81-
8266
return attributes;
8367
}

0 commit comments

Comments
 (0)