mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 17:45:02 +02:00
UBERF-5914 Highlight current wiki document in navigator (#4899)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
@@ -101,8 +101,9 @@ export async function generateLocation (loc: Location, id: Ref<Document>): Promi
|
||||
}
|
||||
}
|
||||
|
||||
export function getDocumentIdFromFragment (fragment: string): Ref<Document> {
|
||||
return fragment as Ref<Document>
|
||||
export function getDocumentIdFromFragment (fragment: string): Ref<Document> | undefined {
|
||||
const [, _id] = decodeURIComponent(fragment).split('|')
|
||||
return _id as Ref<Document>
|
||||
}
|
||||
|
||||
export function getDocumentUrl (doc: Document): string {
|
||||
|
||||
Reference in New Issue
Block a user