SolidOS / SolidOS/solid-ui

Crashes TypeError: Cannot read properties of null looking at search-full-store

Open
#561 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
153
Forks
46
Avg merge
1d 8h
Merged PRs (30d)
7

Description

mashlib.js:171608 errorMessageBlock: TypeError: Cannot read properties of null (reading 'length') at: TypeError: Cannot read properties of null (reading 'length')
at webpack_modules.../solid-panes/node_modules/solid-ui/lib/widgets/forms.js._fieldFunction.field. (https://timbl.com/timbl/Automation/Library/Mashup/mashlib.js:172564:57)
at webpack_modules.../solid-panes/node_modules/solid-ui/lib/widgets/forms.js._fieldFunction.field.._fieldFunction.field. (https://timbl.com/timbl/Automation/Library/Mashup/mashlib.js:171824:21)
at renderItem (https://timbl.com/timbl/Automation/Library/Mashup/mashlib.js:172121:20)
at Object.syncTableToArrayReOrdered (https://timbl.com/timbl/Automation/Library/Mashup/mashlib.js:169203:20)
at refresh (https://timbl.com/timbl/Automation/Library/Mashup/mashlib.js:172312:11)

in src/widgets/forms.js

const dataSource = kb.any(form, ui('search-full-store')).length ? null : dataDoc // optional

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/widgets/forms.js at the dataSource expression involving ui('search-full-store'), then reproduce the search-full-store path that produces the null value. Done means this path no longer throws the reported TypeError when the lookup result is null.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.