mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
feat: rewrite map state handling
This commit is contained in:
1 parent
8f6914d46c
commit
1572b2ea06
2 files changed
+69
-37
No files matched your search
@@ -42,7 +42,7 @@ export default class DAG {
|
||||
if (!node) {
|
||||
throw new Error(`Node ${id} not found`)
|
||||
}
|
||||
return this.layers[node.layer - 1]
|
||||
return this.layers[node.layer - 1] || 0
|
||||
}
|
||||
|
||||
private setLayer(id: string) {
|
||||
|
||||
Reference in new issue
Block a user