aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-05-09 17:44:14 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-05-09 17:44:14 -0400
commit5c876f2f456f75e9886946f738f07a730688f38a (patch)
tree037b1196c329953becd53cf9bf41cc3c091b44f6 /src/client/views/collections/CollectionSubView.tsx
parent99028f27788740d377fec3504f9370412cd2947d (diff)
lint fixes
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index 4fef16315..8b50bd8fc 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -246,7 +246,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
};
temporaryFileReader.readAsText(inputFile);
});
- };
+ }
@undoBatch
@action
protected async onExternalDrop(e: React.DragEvent, options: DocumentOptions, completed?: () => void) {
@@ -388,11 +388,11 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
file?.type === "application/json" && this.readUploadedFileAsText(file).then(result => {
console.log(result);
- const json = JSON.parse(result as string) as any;
+ const json = JSON.parse(result as string);
addDocument(Docs.Create.TreeDocument(
json["rectangular-puzzle"].crossword.clues[0].clue.map((c: any) => {
const label = Docs.Create.LabelDocument({ title: c["#text"], _width: 120, _height: 20 });
- const proto = Doc.GetProto(label)
+ const proto = Doc.GetProto(label);
proto._width = 120;
proto._height = 20;
return proto;