Skip to content

Commit

Permalink
fix some type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
janmonschke committed Mar 12, 2024
1 parent 0e221e8 commit 6d90c80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ describe('helpers', () => {
updated: 1585233356356,
noteId: 'note-id',
note: 'I am a note',
timelineId: null,
timelineId: 'testId',
version: 'testVersion',
},
],
Expand All @@ -871,7 +871,7 @@ describe('helpers', () => {
note: 'I am a note',
user: 'unknown',
saveObjectId: 'note-id',
timelineId: null,
timelineId: 'testId',
version: 'testVersion',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ const createNote = async ({
const userInfo = request.user;

const shallowCopyOfNote = { ...note };
let timelineVersion: string | undefined;

if (note.timelineId == null) {
const { timeline: timelineResult } = await createTimeline({
Expand All @@ -124,7 +123,6 @@ const createNote = async ({
});

shallowCopyOfNote.timelineId = timelineResult.savedObjectId;
timelineVersion = timelineResult.version;
}

const noteWithCreator = overrideOwner
Expand Down

0 comments on commit 6d90c80

Please sign in to comment.