gristlabs_grist-core/app/client
Dmitry S e0fb281eba (core) When searching, use formatter.formatAny() to handle values of invalid type.
Summary:
This turns out necessary because ReferenceList columns are formatted
using the formatter of the associated visibleCol. This works correctly
in dedicated widgets, but in generic code (like SearchModel here), this
formatter needs to handle unexpected values (of type ReferenceList).

Without the fix, it produces JS errors when search reaches a
RefList:<Date> column.

A better fix would allow a formatter to know that it expects a ReferenceList,
AND to know how to format each value of it, but that's a bigger question
that's outside the scope of this fix.

Test Plan: Includes a browser test which reproduces the bug.

Reviewers: cyprien

Reviewed By: cyprien

Differential Revision: https://phab.getgrist.com/D3195
2021-12-21 15:35:40 -05:00
..
aclui (core) go ahead and create fork if non-owner wants to do "View As" on prefork 2021-12-10 14:45:36 -05:00
components (core) Scrolling to the active record on search 2021-12-21 09:57:21 +01:00
lib (core) Scrolling to the active record on search 2021-12-21 09:57:21 +01:00
models (core) When searching, use formatter.formatAny() to handle values of invalid type. 2021-12-21 15:35:40 -05:00
ui (core) Use visibleCol instead of displayCol with createFormatter 2021-12-16 22:19:36 +02:00
ui2018 (core) JS error on creator panel and formula editor. 2021-11-30 14:28:22 +01:00
widgets (core) Use visibleCol instead of displayCol with createFormatter 2021-12-16 22:19:36 +02:00
app.css (core) Make mobile the default mode. 2021-02-25 11:31:43 -05:00
app.js (core) Disable bfcache for all browsers 2021-11-24 09:47:00 -08:00
declarations.d.ts (core) Scrolling to the active record on search 2021-12-21 09:57:21 +01:00
errorMain.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
exposeModulesForTests.js (core) Some cleanup: remove old unused modules. 2020-11-20 11:23:20 -05:00
logo.css (core) Cleanup removing some old unused files, fixing logo.css, and removing #grist-app. 2020-10-09 17:04:09 -04:00
tsconfig.json freshen app/client/ui2018/cssVars.ts 2020-06-23 16:16:38 -04:00