Skip to content

Commit 6224b50

Browse files
Merge pull request #2605 from KelvinTegelaar/dev
Dev to release
2 parents 3acfdb1 + c025a51 commit 6224b50

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cipp",
3-
"version": "5.9.0",
3+
"version": "5.9.3",
44
"description": "The CyberDrain Improved Partner Portal is a portal to help manage administration for Microsoft Partners.",
55
"homepage": "https://cipp.app/",
66
"bugs": {

public/version_latest.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.9.0
1+
5.9.3

src/components/tables/CippTable.jsx

+10-7
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ export default function CippTable({
637637

638638
// Define the flatten function
639639
const flatten = (obj, prefix = '') => {
640+
if (obj === null) return {}
640641
return Object.keys(obj).reduce((output, key) => {
641642
const newKey = prefix ? `${prefix}.${key}` : key
642643
const value = obj[key] === null ? '' : obj[key]
@@ -645,9 +646,13 @@ export default function CippTable({
645646
Object.assign(output, flatten(value, newKey))
646647
} else {
647648
if (Array.isArray(value)) {
648-
value.map((item, idx) => {
649-
Object.assign(output, flatten(item, `${newKey}[${idx}]`))
650-
})
649+
if (typeof value[0] === 'object') {
650+
value.map((item, idx) => {
651+
Object.assign(output, flatten(item, `${newKey}[${idx}]`))
652+
})
653+
} else {
654+
output[newKey] = value
655+
}
651656
} else {
652657
output[newKey] = value
653658
}
@@ -683,8 +688,7 @@ export default function CippTable({
683688
})
684689
return Array.isArray(exportData) && exportData.length > 0
685690
? exportData.map((obj) => {
686-
const flattenedObj = flatten(obj)
687-
return applyFormatter(flattenedObj)
691+
return flatten(applyFormatter(obj))
688692
})
689693
: []
690694
}
@@ -695,8 +699,7 @@ export default function CippTable({
695699
// Adjusted dataFlat processing to include formatting
696700
let dataFlat = Array.isArray(data)
697701
? data.map((item) => {
698-
const flattenedItem = flatten(item)
699-
return applyFormatter(flattenedItem)
702+
return flatten(applyFormatter(item))
700703
})
701704
: []
702705
if (!disablePDFExport) {

src/views/identity/reports/SignIns.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const SignInsReport = () => {
201201
title="Sign Ins Report"
202202
capabilities={{ allTenants: false, helpContext: 'https://google.com' }}
203203
datatable={{
204-
filterlists: [
204+
filterlist: [
205205
{
206206
filterName: 'Risky sign-ins',
207207
filter: 'Complex: riskState ne none',

version_latest.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.9.0
1+
5.9.3

0 commit comments

Comments
 (0)