mirror of
https://github.com/projectstorm/react-diagrams.git
synced 2026-03-13 09:50:09 +08:00
fixing a typo: should be LinkLayerModel instead of NodeLayerModel
This commit is contained in:
@@ -76,7 +76,7 @@ export class DiagramModel<G extends DiagramModelGenerics = DiagramModelGenerics>
|
||||
if (!this.activeLinkLayer) {
|
||||
const layers = this.getLinkLayers();
|
||||
if (layers.length === 0) {
|
||||
this.addLayer(new NodeLayerModel());
|
||||
this.addLayer(new LinkLayerModel());
|
||||
} else {
|
||||
this.activeLinkLayer = layers[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user