mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1639420 - Code cleanups to breakpoint component r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D76077
This commit is contained in:
parent
ddfc35cb4f
commit
067bb4ea4c
@ -108,13 +108,12 @@ class Breakpoints extends Component<Props> {
|
||||
return null;
|
||||
}
|
||||
|
||||
const sources = [
|
||||
...breakpointSources.map(({ source, breakpoints }) => source),
|
||||
];
|
||||
const editor = this.getEditor();
|
||||
const sources = [...breakpointSources.map(({ source }) => source)];
|
||||
|
||||
return (
|
||||
<div className="pane breakpoints-list">
|
||||
{breakpointSources.map(({ source, breakpoints, i }) => {
|
||||
{breakpointSources.map(({ source, breakpoints }) => {
|
||||
const sortedBreakpoints = sortSelectedBreakpoints(
|
||||
breakpoints,
|
||||
selectedSource
|
||||
@ -131,7 +130,7 @@ class Breakpoints extends Component<Props> {
|
||||
breakpoint={breakpoint}
|
||||
source={source}
|
||||
selectedSource={selectedSource}
|
||||
editor={this.getEditor()}
|
||||
editor={editor}
|
||||
key={makeBreakpointId(
|
||||
getSelectedLocation(breakpoint, selectedSource)
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user