aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-12-06 22:54:43 -0500
committerbobzel <zzzman@gmail.com>2023-12-06 22:54:43 -0500
commitdf4c0931b6596d7b43a091f7ab5474d47c4f4ab4 (patch)
tree4655c8c7e26df700cdb7975c2580e3d71b24fa13 /src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx
parentcd9ad39d3a1cafc410c7a04ce6ed44cc926175de (diff)
cleanup
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx
index 8b2b32581..dfe77482f 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx
@@ -65,7 +65,7 @@ export class CollectionFreeFormInfoUI extends React.Component<CollectionFreeForm
const { links, docs } = arc;
if (docs.length === 0) this.currState = this.state0;
if (docs.length === 1) this.currState = this.state1;
- if (links.length) this.currState = this.state3;
+ if (links?.length) this.currState = this.state3;
},
},
],
@@ -79,7 +79,7 @@ export class CollectionFreeFormInfoUI extends React.Component<CollectionFreeForm
actions: arc => {
const { links, viewingLinks } = arc;
if (viewingLinks) this.currState = this.state4;
- if (links.length === 0) this.currState = this.state2;
+ if (links?.length === 0) this.currState = this.state2;
},
},
],