[go: nahoru, domu]

Skip to content

Commit

Permalink
[backend] prevent error when pid is set like a string empty (#6968)
Browse files Browse the repository at this point in the history
  • Loading branch information
frapuks committed Jun 5, 2024
1 parent 6e456eb commit 20adb22
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ export const stixCyberObservableEditField = async (context, user, stixCyberObser
input,
opts
);
if (isEmptyField(stixCyberObservable.pid)) stixCyberObservable.pid = undefined;
if (input[0].key === 'x_opencti_score') {
const indicators = await listAllFromEntitiesThroughRelations(
context,
Expand Down

0 comments on commit 20adb22

Please sign in to comment.