Skip to content

Commit

Permalink
[frontend] Fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Hassine committed Apr 29, 2021
1 parent ddbf017 commit 693613d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opencti-platform/opencti-front/src/utils/Graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export const decodeGraphData = (encodedGraphData) => {
};

export const defaultDate = (n) => {
if (!n) return '';
if (!isNone(n.start_time)) {
return n.start_time;
}
Expand All @@ -249,6 +250,7 @@ export const defaultDate = (n) => {
};

export const defaultValue = (n, tooltip = false) => {
if (!n) return '';
if (tooltip) {
return `${n.x_mitre_id ? `[${n.x_mitre_id}] ` : ''}${
n.name
Expand Down

0 comments on commit 693613d

Please sign in to comment.