chore: Removes highlighting from JSEditor (#40031)
## Description Removes the line highlight in JS Editor <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Simplified the code editor by removing the highlighted lines feature. The editor now presents a cleaner, uniform display while maintaining its existing functionality. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
6c69d8ddf0
commit
67ed4cfbdb
|
|
@ -57,7 +57,6 @@ import {
|
||||||
getJSActionOption,
|
getJSActionOption,
|
||||||
type OnUpdateSettingsProps,
|
type OnUpdateSettingsProps,
|
||||||
} from "./JSEditorToolbar";
|
} from "./JSEditorToolbar";
|
||||||
import { getHighlightedLines } from "ee/pages/Editor/JSEditor/utils/getHighlightedLines";
|
|
||||||
|
|
||||||
interface JSFormProps {
|
interface JSFormProps {
|
||||||
jsCollectionData: JSCollectionData;
|
jsCollectionData: JSCollectionData;
|
||||||
|
|
@ -288,8 +287,6 @@ function JSEditorForm({
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const highlightedLines = getHighlightedLines(currentJSCollection);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (parseErrors.length || isEmpty(jsActions)) {
|
if (parseErrors.length || isEmpty(jsActions)) {
|
||||||
setDisableRunFunctionality(true);
|
setDisableRunFunctionality(true);
|
||||||
|
|
@ -376,7 +373,6 @@ function JSEditorForm({
|
||||||
currentJSCollection={currentJSCollection}
|
currentJSCollection={currentJSCollection}
|
||||||
customGutter={JSGutters}
|
customGutter={JSGutters}
|
||||||
executing={isExecutingCurrentJSAction}
|
executing={isExecutingCurrentJSAction}
|
||||||
highlightedLines={highlightedLines}
|
|
||||||
onChange={handleEditorChange}
|
onChange={handleEditorChange}
|
||||||
onUpdateSettings={onUpdateSettings}
|
onUpdateSettings={onUpdateSettings}
|
||||||
onValueChange={(string) =>
|
onValueChange={(string) =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user