aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
authoralinayejin <alina_kim@brown.edu>2023-12-06 23:42:03 -0500
committeralinayejin <alina_kim@brown.edu>2023-12-06 23:42:03 -0500
commitb9d53bf0fffb8452c32b55e708995310215c9341 (patch)
treee4db9bce7b0afd5651329aff6e9d92f09c7a7005 /src/client/views
parent04d6da65b5e75b9a67c0f5722b1af9b9ea9500d1 (diff)
parent1b45d2610576ded9fc0c6ca9dbb64cf06b3db1e1 (diff)
Merge branch 'info-ui' of https://github.com/brown-dash/Dash-Web into info-ui
Diffstat (limited to 'src/client/views')
-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 a54ee4b2c..57d2b7ba1 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormInfoUI.tsx
@@ -60,7 +60,7 @@ export class CollectionFreeFormInfoUI extends React.Component<CollectionFreeForm
Message: 'Create a link',
Arcs: [
{
- events: () => this.first_doc && LinkManager.Instance.getAllDirectLinks(this.first_doc),
+ events: () => LinkManager.Instance.getAllDirectLinks(this.first_doc),
actions: links => links?.length && (this.currState = this.state3),
},
{
@@ -77,7 +77,7 @@ export class CollectionFreeFormInfoUI extends React.Component<CollectionFreeForm
Message: 'View links',
Arcs: [
{
- events: () => this.first_doc && LinkManager.Instance.getAllDirectLinks(this.first_doc),
+ events: () => LinkManager.Instance.getAllDirectLinks(this.first_doc),
actions: links => links?.length === 0 && (this.currState = this.state2),
},
{