@dracul/audit-frontend 1.35.7 → 1.35.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dracul/audit-frontend",
3
- "version": "1.35.7",
3
+ "version": "1.35.8",
4
4
  "description": "Audit frontend",
5
5
  "author": "Cristian Incarnato <cristian.cdi@gmail.com>",
6
6
  "publishConfig": {
@@ -38,5 +38,5 @@
38
38
  "type": "git",
39
39
  "url": "git+https://github.com/draculjs/modular-framework.git"
40
40
  },
41
- "gitHead": "b9c5be39959452b94d59742d37b0a391ccef62b5"
41
+ "gitHead": "6090a79021cacfa5a753cccd0e300ac1896d9430"
42
42
  }
@@ -321,7 +321,7 @@ export default {
321
321
  this.fetch()
322
322
  },
323
323
  getAuditDataChanges(audit) {
324
- if (audit && typeof audit.resourceData === 'string') {
324
+ if (audit && audit.resourceData && audit.resourceData !== '' && typeof audit.resourceData === 'string' && audit.resourceData !== null && audit.resourceData !== undefined) {
325
325
  try {
326
326
  audit.resourceData = JSON.parse(audit.resourceData)
327
327
  } catch {
@@ -333,6 +333,7 @@ export default {
333
333
  if (!audit || typeof audit.resourceData !== 'object') return []
334
334
 
335
335
  const buildTree = (data) => {
336
+ if (!data) return [];
336
337
  return Object.entries(data).map(([key, value]) => {
337
338
  if (typeof value === 'object' && value !== null) {
338
339
  return {