Fix actual code errors listed by linter.
This commit is contained in:
parent
0f5a7b9606
commit
db292abe03
@ -339,7 +339,7 @@ export function updateUnpublishedEntryStatus(collection, slug, oldStatus, newSta
|
||||
}));
|
||||
dispatch(unpublishedEntryStatusChangePersisted(collection, slug, oldStatus, newStatus, transactionID));
|
||||
})
|
||||
.catch(() => {
|
||||
.catch((error) => {
|
||||
dispatch(notifSend({
|
||||
message: `Failed to update status: ${ error }`,
|
||||
kind: 'danger',
|
||||
|
@ -41,7 +41,8 @@ export default class AuthenticationPage extends React.Component {
|
||||
}
|
||||
|
||||
handleIdentity = () => {
|
||||
if (window.netlifyIdentity.currentUser()) {
|
||||
const user = window.netlifyIdentity.currentUser();
|
||||
if (user) {
|
||||
this.props.onLogin(user);
|
||||
} else {
|
||||
window.netlifyIdentity.open();
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
export default () => (
|
||||
<div class="nc-notFound-container">
|
||||
<div className="nc-notFound-container">
|
||||
<h2>Not Found</h2>
|
||||
</div>
|
||||
);
|
||||
|
@ -1,3 +1,4 @@
|
||||
import React from 'react';
|
||||
import { fromJS } from 'immutable';
|
||||
import { markdownToSlate } from 'EditorWidgets/Markdown/serializers';
|
||||
|
||||
|
@ -33,7 +33,7 @@ export const Icon = props => {
|
||||
className = '',
|
||||
width,
|
||||
height,
|
||||
...remainingProps,
|
||||
...remainingProps
|
||||
} = props;
|
||||
const icon = icons[type];
|
||||
const rotation = getRotation(icon.direction, direction)
|
||||
|
Loading…
x
Reference in New Issue
Block a user