fix: HOTFIX r.map is not a function (#7872)
This commit is contained in:
parent
295427cc47
commit
2aa6f03518
1 changed files with 4 additions and 1 deletions
|
|
@ -119,7 +119,10 @@ export function FindAndReplaceDisplay({
|
|||
if (editingFileContents) {
|
||||
return editingFileContents;
|
||||
}
|
||||
return edits?.map((edit) => edit.old_string ?? "").join("\n");
|
||||
if (Array.isArray(edits)) {
|
||||
return edits.map((edit) => edit.old_string ?? "").join("\n");
|
||||
}
|
||||
return "";
|
||||
}, [editingFileContents, edits]);
|
||||
|
||||
const diffResult = useMemo(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue