Skip to content

Commit

Permalink
Merge pull request #2653 from JohnDuprey/dev
Browse files Browse the repository at this point in the history
Allow multiple tenant to company map
  • Loading branch information
JohnDuprey committed Jul 10, 2024
2 parents b3bbd4b + d7bbc26 commit c71c763
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 c71c763

Please sign in to comment.