File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/Pages/GlobalConfigurations/BuildInfra Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -605,6 +605,20 @@ const useBuildInfraForm = ({
605
605
if ( Object . keys ( currentInputErrors [ BuildInfraConfigTypes . NODE_SELECTOR ] || { } ) . length === 0 ) {
606
606
currentInputErrors [ BuildInfraConfigTypes . NODE_SELECTOR ] = null
607
607
}
608
+
609
+ // Will validate all the keys since checking duplicates
610
+ const existingKeys = currentConfiguration [ BuildInfraConfigTypes . NODE_SELECTOR ] . value . map (
611
+ ( selector ) => selector . key ,
612
+ )
613
+
614
+ currentConfiguration [ BuildInfraConfigTypes . NODE_SELECTOR ] . value . forEach ( ( selector ) => {
615
+ validateNodeSelector ( {
616
+ selector,
617
+ existingKeys,
618
+ profileInputErrors : currentInputErrors ,
619
+ } )
620
+ } )
621
+
608
622
break
609
623
}
610
624
You can’t perform that action at this time.
0 commit comments