Replaced deprecated RxJS operators

This commit is contained in:
squidfunk
2022-04-02 18:36:59 +02:00
parent f4f9c21d32
commit 92dc0375dc
19 changed files with 68 additions and 71 deletions

View File

@@ -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 }))
)
}