mirror of
https://github.com/loro-dev/loro.git
synced 2024-12-01 04:28:18 +00:00
fix: type err
This commit is contained in:
parent
e3a7757610
commit
b117880fed
2 changed files with 3 additions and 2 deletions
|
@ -350,6 +350,7 @@ impl State {
|
|||
State::RichtextState(richtext_state.fork(config))
|
||||
}
|
||||
State::TreeState(tree_state) => State::TreeState(tree_state.fork(config)),
|
||||
#[cfg(feature = "counter")]
|
||||
State::CounterState(counter_state) => State::CounterState(counter_state.fork(config)),
|
||||
State::UnknownState(unknown_state) => State::UnknownState(unknown_state.fork(config)),
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ loro-internal = { path = "../loro-internal", features = ["wasm", "counter"] }
|
|||
wasm-bindgen = "=0.2.92"
|
||||
serde-wasm-bindgen = { version = "^0.6.5" }
|
||||
wasm-bindgen-derive = "0.2.1"
|
||||
console_error_panic_hook = { version = "0.1.6", optional = true }
|
||||
console_error_panic_hook = { version = "0.1.6" }
|
||||
getrandom = { version = "0.2.15", features = ["js"] }
|
||||
serde = { workspace = true }
|
||||
rle = { path = "../rle", package = "loro-rle" }
|
||||
|
@ -23,4 +23,4 @@ tracing = { version = "0.1", features = ["release_max_level_warn"] }
|
|||
serde_json = "1"
|
||||
|
||||
[features]
|
||||
default = ["console_error_panic_hook"]
|
||||
default = []
|
||||
|
|
Loading…
Reference in a new issue