@@ -32,9 +32,9 @@ const BASE_JS = {
3232* @param {GraphNode} attributes Attributes of the node
3333* @param {number} index The index position of the node in the graph
3434* @param {AbstractGraph<GraphNode, GraphEdge>} graph Graphology instance (https://graphology.github.io/)
35- * @returns number|string|boolean|null|undefined" The value of the new node's attribut
35+ * @returns number|string|boolean|null|undefined" The value of the new node's attribute
3636*/` ,
37- baseFn : `function addNodeAttribut (id, attributes, index, graph) {
37+ baseFn : `function addNodeAttribute (id, attributes, index, graph) {
3838 //
3939 // Your code goes here
4040 //
@@ -44,8 +44,8 @@ const BASE_JS = {
4444 if ( ! fn ) throw new Error ( "Function is not defined" ) ;
4545 const fullGraph = dataGraphToFullGraph ( graphDatasetAtom . get ( ) ) ;
4646 const id = fullGraph . nodes ( ) [ 0 ] ;
47- const attributs = fullGraph . getNodeAttributes ( id ) ;
48- const result = fn ( id , attributs , 0 , fullGraph ) ;
47+ const attributes = fullGraph . getNodeAttributes ( id ) ;
48+ const result = fn ( id , attributes , 0 , fullGraph ) ;
4949 if ( ! isScalar ( result ) ) throw new Error ( "Function must returns a number, a string, a boolean, null or undefined" ) ;
5050 } ,
5151 } ,
@@ -57,9 +57,9 @@ const BASE_JS = {
5757* @param {GraphNode} attributes Attributes of the node
5858* @param {number} index The index position of the node in the graph
5959* @param {AbstractGraph<GraphNode, GraphEdge>} graph Graphology instance (https://graphology.github.io/)
60- * @returns number|string|boolean|null|undefined" The value of the new edge's attribut
60+ * @returns number|string|boolean|null|undefined" The value of the new edge's attribute
6161*/` ,
62- baseFn : `function addEdgeAttribut (id, attributes, index, graph) {
62+ baseFn : `function addEdgeAttribute (id, attributes, index, graph) {
6363 //
6464 // Your code goes here
6565 //
@@ -94,8 +94,8 @@ export const useCreateScriptedFieldModelForm = ({
9494
9595 const fullGraph = dataGraphToFullGraph ( graphDatasetAtom . get ( ) ) ;
9696 const id = fullGraph [ type ] ( ) [ 0 ] ;
97- const attributs = type === "nodes" ? fullGraph . getNodeAttributes ( id ) : fullGraph . getEdgeAttributes ( id ) ;
98- const result = fn ( id , attributs , 0 , fullGraph ) ;
97+ const attributes = type === "nodes" ? fullGraph . getNodeAttributes ( id ) : fullGraph . getEdgeAttributes ( id ) ;
98+ const result = fn ( id , attributes , 0 , fullGraph ) ;
9999 if ( ! isScalar ( result ) ) throw new Error ( "Function must returns a number, a string, a boolean, null or undefined" ) ;
100100 } ,
101101 [ type ] ,
0 commit comments