mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-18 23:10:16 +02:00
@@ -367,11 +367,7 @@ export class LinearElementEditor {
|
||||
);
|
||||
}
|
||||
|
||||
const newLinearElementEditor = {
|
||||
...linearElementEditor,
|
||||
customLineAngle,
|
||||
};
|
||||
|
||||
// PERF: Avoid state updates if not absolutely necessary
|
||||
if (
|
||||
app.state.selectedLinearElement?.customLineAngle === customLineAngle &&
|
||||
(!suggestedBinding ||
|
||||
@@ -380,6 +376,11 @@ export class LinearElementEditor {
|
||||
return null;
|
||||
}
|
||||
|
||||
const newLinearElementEditor = {
|
||||
...linearElementEditor,
|
||||
customLineAngle,
|
||||
};
|
||||
|
||||
return {
|
||||
selectedLinearElement: newLinearElementEditor,
|
||||
suggestedBinding,
|
||||
|
Reference in New Issue
Block a user