Skip to content

Commit 2261bfd

Browse files
author
noook
committed
Critical bugfix - crash when no last permanent item
1 parent e60dd09 commit 2261bfd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "igdm",
3-
"version": "1.2.0",
3+
"version": "1.3.0",
44
"description": "Send and receive Instagram direct message through CLI.",
55
"keywords": [
66
"instagram",

src/domain/direct-messaging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class DirectMessaging {
2323
this.threads = await this.getInbox();
2424
console.clear();
2525
const choices = this.threads.map(({ thread_id, thread_title, last_permanent_item }) => ({
26-
name: `${thread_title}: ${last_permanent_item.text}`,
26+
name: `${thread_title}: ${last_permanent_item?.text}`,
2727
value: thread_id
2828
}));
2929

0 commit comments

Comments
 (0)