fixes #1093 – account for no previous revision in backlinks service

This commit is contained in:
Tom Moor
2019-12-07 11:40:15 -08:00
parent 504aa9f7bb
commit cbd9ff2dd9
2 changed files with 5 additions and 3 deletions

View File

@ -2,7 +2,7 @@
import MarkdownSerializer from 'slate-md-serializer';
const Markdown = new MarkdownSerializer();
export default function parseDocumentIds(text: string) {
export default function parseDocumentIds(text: string): string[] {
const value = Markdown.deserialize(text);
let links = [];