-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bypass the interaction from monaco instance when using multiple …
…components in the same page
- Loading branch information
1 parent
cf46d39
commit 75f10da
Showing
4 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* @Author: legends-killer | ||
* @Date: 2024-01-15 21:02:24 | ||
* @LastEditors: legends-killer | ||
* @LastEditTime: 2024-01-15 21:02:56 | ||
* @Description: | ||
*/ | ||
import { ISuggestionItem } from "./JsonEditor/helper/jsonSchemaProcessor"; | ||
export const filterRepeateSuggestions = (suggestions: ISuggestionItem[]) => { | ||
const suggestionsMap = new Map<string, ISuggestionItem>() | ||
suggestions.forEach((suggestion) => { | ||
suggestionsMap.set(suggestion.title, suggestion) | ||
}) | ||
return Array.from(suggestionsMap.values()) | ||
} |