Skip to content

Commit

Permalink
Merge pull request #175 from Shubha-accenture/iteration5-bug-tracker-…
Browse files Browse the repository at this point in the history
…fixes

Bug fix: Handling Value truncation for properties
  • Loading branch information
Shubha-accenture authored Aug 22, 2024
2 parents 2ed3346 + 55aa4f1 commit f5b58fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/jobs/labelProperties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function LabelProperties({
if (data.split(':')[1] === '') {
data = data + value;
} else {
data = data.replace(data.split(':')[1], value);
data = data.replace(data.split(/:(.+)/)[1], value);
}
}
}
Expand Down Expand Up @@ -287,7 +287,7 @@ function LabelProperties({
}
defaultValue={
labelSplit.length > 2
? labelSplit[1] + ':' + labelSplit[2]
? label.split(/:(.+)/)[1]
: labelSplit[1]
}
Label={`Value ${index + 1}`}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/createRunTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ function CreateRunTime({
propertyObject[key] = value;
});
propertyDetailUpdated.forEach((label: string) => {
const labelSplit = label.split(':');
const labelSplit = label.split(/:(.+)/);
const key = labelSplit[0];
const value = labelSplit[1];
propertyObject[key] = value;
Expand Down

0 comments on commit f5b58fa

Please sign in to comment.