Skip to content

Commit

Permalink
perf: 文本值下拉框text 顺序问题 #7505
Browse files Browse the repository at this point in the history
  • Loading branch information
lTimej authored and normal-wls committed Aug 5, 2024
1 parent fd104a4 commit 6c8533e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pipeline_plugins/variables/collections/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def get_value(self):

meta_values = json.loads(self.value["meta_data"])
info_values = TextValueSelect.process_info_value(self.value["info_value"])
text_values = [meta["text"] for meta in meta_values if meta["value"] in info_values]
text_values = [
meta["text"] for value in info_values for meta in meta_values if meta["value"] == value and meta["text"]
]
text_not_selected_values = [meta["text"] for meta in meta_values if meta["value"] not in info_values]
info_not_selected_values = [meta["value"] for meta in meta_values if meta["value"] not in info_values]

Expand Down

0 comments on commit 6c8533e

Please sign in to comment.