Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
fixing auto corrected lint error that broke the custom auto annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
tnrich committed Jul 8, 2021
1 parent 9703fee commit 5dcfc2a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
13 changes: 5 additions & 8 deletions addons/AutoAnnotate/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export const AutoAnnotateModal = compose(
}
}
})();
}, [getCustomAutoAnnotateList, props]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
if (newAnnotations) {
return (
<CreateAnnotationsPage
Expand Down Expand Up @@ -239,16 +240,12 @@ FRT GAAGTTCCTATTCTCTAGAAAGTATAGGAACTTC misc_recomb orchid pink 0 0`,
(loadingCustomAnnList ? (
<Tab disabled title="Loading..."></Tab>
) : (
customAnnResponse && (
customAnnResponse &&
customAnnResponse.list && (
<Tab
id="implementerDefined"
title={
(customAnnResponse && customAnnResponse.title) ||
"Custom List"
}
title={customAnnResponse.title || "Custom List"}
panel={
customAnnResponse &&
customAnnResponse.list &&
customAnnResponse.list.length ? (
<div>
<DataTable
Expand Down
1 change: 1 addition & 0 deletions cypress/integration/autoAnnotate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe("autoAnnotate", function () {
cy.contains("Loading...").should("exist");
cy.contains("Loading...").should("not.exist");
cy.contains("My Parts").should("not.exist");
cy.closeDialog();

cy.triggerFileCmd("Auto Annotate Features");
cy.contains("My Features").click();
Expand Down
2 changes: 1 addition & 1 deletion demo/src/EditorDemo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class EditorDemo extends React.Component {
};
getCustomAutoAnnotateList = async ({ annotationType, sequenceData }) => {
// const dataToReturn = await fetch("/my/endpoint/here", { ...someParams });
await sleep(500);
await sleep(1000);
if (annotationType !== "feature") return false;
await sleep(1000);

Expand Down

0 comments on commit 5dcfc2a

Please sign in to comment.