ccaominh commented on a change in pull request #9891:
URL: https://github.com/apache/druid/pull/9891#discussion_r427465997



##########
File path: web-console/src/components/rule-editor/rule-editor.tsx
##########
@@ -102,8 +102,11 @@ export const RuleEditor = React.memo(function 
RuleEditor(props: RuleEditorProps)
               onChange(RuleUtil.renameTieredReplicants(rule, tier, 
e.target.value))
             }
           >
+            <option key={tier} value={tier}>
+              {tier}
+            </option>
             {tiers
-              .filter(t => t === tier || !tieredReplicants[t])
+              .filter(t => t !== tier && !tieredReplicants[t])

Review comment:
       Can you add a test for this in `rule-editor.spec.tsx`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to