Skip to content

Commit

Permalink
fix(function): Ensure for field data that relationship and serializer…
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Sep 30, 2024
1 parent 82e510d commit 8a4b4db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/functions/FieldData.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export default function FieldData({

field_data = '-'

} else {

} else if( typeof(data[field_name]) === 'object' ){
if( 'url' in data[field_name] ) {

field_data = (
Expand All @@ -104,6 +104,10 @@ export default function FieldData({

}

} else {

field_data = data[field_name]

}

break;
Expand Down

0 comments on commit 8a4b4db

Please sign in to comment.