Skip to content

Commit 7157ccd

Browse files
committed
Fixed duplicated lines
1 parent 0fb769c commit 7157ccd

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/dashboard/Dashboard.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -196,22 +196,17 @@ class Dashboard extends React.Component {
196196
}
197197
});
198198
return Parse.Promise.when(appInfoPromises);
199-
}).then(function(resolvedApps) {
200-
console.log('Parse.Promise:then:resolvedApps', resolvedApps);
201-
if(resolvedApps && resolvedApps.length) {
202-
resolvedApps.forEach(app => {
203-
AppsManager.addApp(app);
204-
});
205-
} else {
206-
throw new Error('There is no apps');
207-
}
199+
}).then(function() {
200+
Array.prototype.slice.call(arguments).forEach(app => {
201+
AppsManager.addApp(app);
202+
});
208203
this.setState({ configLoadingState: AsyncStatus.SUCCESS });
209204
}.bind(this)).fail(({ error }) => {
210205
this.setState({
211206
configLoadingError: error,
212207
configLoadingState: AsyncStatus.FAILED
213208
});
214-
});
209+
})
215210
}
216211

217212
render() {

src/dashboard/Data/Browser/BrowserTable.react.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,6 @@ export default class BrowserTable extends React.Component {
292292
{rows}
293293
<div style={{ height: Math.max(0, (this.props.data.length - this.state.offset - MAX_ROWS) * ROW_HEIGHT) }} />
294294
{addRow}
295-
<div className={styles.rowsHolder} style={{ top: Math.max(0, this.state.offset * ROW_HEIGHT) }}>
296-
{rows}
297-
</div>
298295
{editor}
299296
</div>
300297
);

0 commit comments

Comments
 (0)