Skip to content

Commit e6bc2bc

Browse files
committed
fix: getDraft endpoint return value
1 parent a3e823b commit e6bc2bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/store/apis/getDraft.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const getDraft = async ({
2222
const draftRowWithMessage = draftRowsWithMessage[0];
2323

2424
if (!draftRowWithMessage) {
25-
return undefined;
25+
return null;
2626
}
2727

2828
const channelQuery = createSelectQuery('channels', ['*'], { cid });

0 commit comments

Comments
 (0)