mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-23 14:23:39 -04:00
Replaced deprecated RxJS operators
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
import {
|
||||
Observable,
|
||||
mapTo,
|
||||
map,
|
||||
of,
|
||||
shareReplay,
|
||||
tap
|
||||
@@ -94,7 +94,7 @@ export function mountMermaid(
|
||||
startOnLoad: false,
|
||||
themeCSS
|
||||
})),
|
||||
mapTo(undefined),
|
||||
map(() => undefined),
|
||||
shareReplay(1)
|
||||
)
|
||||
|
||||
@@ -117,6 +117,6 @@ export function mountMermaid(
|
||||
/* Create and return component */
|
||||
return mermaid$
|
||||
.pipe(
|
||||
mapTo({ ref: el })
|
||||
map(() => ({ ref: el }))
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user