DataTables / DataTables/SearchBuilder

fastData is not a function

Open
#17 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
23
Forks
20
PR merge metrics
No merged PRs in 30d

Description

When attempting to upgrade SearchBuilder from 1.3.0 to 1.7.0 I'm getting the following error after selecting a data column of type 'string' with the condition 'Equals'. The 'Values' dropdown is empty due to the following JS error.

TypeError: fastData is not a function. (In 'fastData(index, column, typeof that.c.orthogonal === 'string' ? that.c.orthogonal : that.c.orthogonal.search)', 'fastData' is undefined)

When I console.log line 1024

var fastData = that.s.dt.settings()[0].fastData;
console.log(typeof fastData, fastData);

I get undefined, undefined. Upon inspection, fastData does not appear in the settings object

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

Reproduce the upgrade from SearchBuilder 1.3.0 to 1.7.0, then select a string data column with the Equals condition. Start at the reported line around 1024 and inspect the DataTables settings object for fastData; done means the Values dropdown is populated without the fastData TypeError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.