Skip to content

Commit

Permalink
fixes data not available bug
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Sep 26, 2023
1 parent ab8bb40 commit a28bc05
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/cipp/CIPPSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -1577,8 +1577,8 @@ const ExtensionsTab = () => {
}

const MappingsTab = () => {
const [listHaloBackend, listBackendHaloResult] = useLazyGenericGetRequestQuery()
const [setHaloExtensionconfig, extensionHaloConfigResult] = useLazyGenericPostRequestQuery()
const [listHaloBackend, listBackendHaloResult = []] = useLazyGenericGetRequestQuery()
const [setHaloExtensionconfig, extensionHaloConfigResult = []] = useLazyGenericPostRequestQuery()

const onHaloSubmit = (values) => {
setHaloExtensionconfig({
Expand Down Expand Up @@ -1608,7 +1608,7 @@ const MappingsTab = () => {
<CCardText>
Use the table below to map your client to the correct PSA client
{listBackendHaloResult.isSuccess &&
listBackendHaloResult.data.Tenants.map((tenant) => (
listBackendHaloResult.data.Tenants?.map((tenant) => (
<RFFSelectSearch
key={tenant.customerId}
name={tenant.customerId}
Expand Down

0 comments on commit a28bc05

Please sign in to comment.