fix: type err

This commit is contained in:
Zixuan Chen 2024-10-04 09:55:49 +08:00
parent e3a7757610
commit b117880fed
No known key found for this signature in database
2 changed files with 3 additions and 2 deletions

View file

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

View file

@ -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 = []