Skip to content

Commit

Permalink
Allow multiple tenant to company map
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnDuprey committed Jul 10, 2024
1 parent b3bbd4b commit d7bbc26
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/views/cipp/ExtensionMappings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,16 +236,10 @@ export default function ExtensionMappings({ type, fieldMappings = false, autoMap
<CCol xs="5">
<RFFSelectSearch
name="companyId"
values={listMappingBackendResult.data?.Companies.filter((client) => {
return !Object.values(listMappingBackendResult.data?.Mappings)
.map((value) => {
return value.value
})
.includes(client.value.toString())
}).map((client) => ({
values={listMappingBackendResult.data?.Companies.map((client) => ({
name: client.name,
value: client.value,
}))}
})).sort((a, b) => a.name.localeCompare(b.name))}
onChange={(e) => setMappingValue(e)}
placeholder={`Select a ${type} Organization`}
isLoading={listMappingBackendResult.isFetching}
Expand Down

0 comments on commit d7bbc26

Please sign in to comment.