Skip to content

Commit

Permalink
review optional
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Aug 28, 2019
1 parent 0b75440 commit 82ac8bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion x-pack/legacy/plugins/siem/public/store/timeline/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export interface TimelineState {
}

export interface ActionTimeline extends Action<string> {
type: string;
payload: {
id: string;
eventId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export class PinnedEvent {
return null;
} catch (err) {
if (getOr(null, 'output.statusCode', err) === 404) {
/*
* Why we are doing that, because if it is not found for sure that it will be unpinned
* There is no need to bring back this error since we can assume that it is unpinned
*/
return null;
}
if (getOr(null, 'output.statusCode', err) === 403) {
Expand Down

0 comments on commit 82ac8bd

Please sign in to comment.