Skip to content

Commit

Permalink
Fix the bug that flow render failed when config changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
echoyang7 committed Jun 28, 2024
1 parent 647c468 commit f810b7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lyrebird/mock/dm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import json
import time
import codecs
from copy import deepcopy
import shutil
import traceback
from pathlib import Path
Expand Down Expand Up @@ -502,7 +503,7 @@ def get_matched_data(self, flow):
for _data_id in self.activated_data:
_data = self.activated_data[_data_id]
if self._is_match_rule(decode_flow, _data.get('rule')):
_matched_data.append(_data)
_matched_data.append(deepcopy(_data))
break

for response_data in _matched_data:
Expand Down

0 comments on commit f810b7d

Please sign in to comment.