File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ export function validationCurbNodes(context) {
40
40
data : { crossingWayID : wayID } ,
41
41
dynamicFixes : ( ) => [ 'unspecified' , 'flush' , 'lowered' , 'raised' ] . map ( type => {
42
42
const tags = { barrier : 'kerb' , kerb : type } ;
43
- const iconID = getIconForCurbNode ( tags ) ; // Get the appropriate icon based on the tags
43
+ const iconID = getIconForCurbNode ( tags ) ;
44
44
return new ValidationFix ( {
45
- icon : iconID , // Use the dynamically selected icon
45
+ icon : iconID ,
46
46
title : `Add ${ type } Curb Nodes` ,
47
47
onClick : ( ) => {
48
48
const action = applyCurbNodeFix ( wayID , editor . staging . graph , tags ) ;
@@ -88,10 +88,10 @@ export function validationCurbNodes(context) {
88
88
89
89
90
90
/**
91
- * hasKerbNodes
91
+ * hasCurbNodes
92
92
* Checks if the given way already has curb nodes
93
93
* @param {Object } way - The way entity to check
94
- * @return {Boolean } True if kerb nodes are present, false otherwise
94
+ * @return {Boolean } True if curb nodes are present, false otherwise
95
95
*/
96
96
function hasCurbNodes ( way ) {
97
97
const graph = editor . staging . graph ;
You can’t perform that action at this time.
0 commit comments