mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 16:13:50 +00:00
visgraph: improve splitId(node_id,'id') : return always integer
node_id value examples: * 'accompanying_period_124' --> 124 * '124' --> 124 * 124 --> 124
This commit is contained in:
@@ -237,6 +237,11 @@ export default {
|
||||
let nodeType = splitId(data.nodes[0], 'type')
|
||||
switch (nodeType) {
|
||||
|
||||
// test
|
||||
console.log(
|
||||
splitId('accompanying_period_124', 'id')
|
||||
)
|
||||
|
||||
case 'person':
|
||||
let person = this.nodes.filter(n => n.id === data.nodes[0])[0]
|
||||
console.log('@@@@@@ event on selected Node', person.id)
|
||||
|
Reference in New Issue
Block a user