mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
adapt to slight differences in linting (#842)
grist-saas and grist-core builds have slight differences in the depth of type information inferred.
This commit is contained in:
parent
fe2089710e
commit
23456ca43d
@ -45,6 +45,7 @@ interface SpecActions {
|
|||||||
function applySpecActions(cb: (specActions: SpecActions, jsonSpec: JsonSpec) => void) {
|
function applySpecActions(cb: (specActions: SpecActions, jsonSpec: JsonSpec) => void) {
|
||||||
// Don't call actions directly within `wrapActions`, react/redux doesn't like it.
|
// Don't call actions directly within `wrapActions`, react/redux doesn't like it.
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const system = (swaggerUI as any).getSystem();
|
const system = (swaggerUI as any).getSystem();
|
||||||
const jsonSpec = system.getState().getIn(["spec", "json"]);
|
const jsonSpec = system.getState().getIn(["spec", "json"]);
|
||||||
cb(system.specActions, jsonSpec);
|
cb(system.specActions, jsonSpec);
|
||||||
@ -253,6 +254,7 @@ function initialize(appModel: AppModel) {
|
|||||||
// showing it in cleartext makes it riskier to ask for help with screenshots and the like.
|
// showing it in cleartext makes it riskier to ask for help with screenshots and the like.
|
||||||
// We set a fake key anyway to be clear that it's needed in the curl command.
|
// We set a fake key anyway to be clear that it's needed in the curl command.
|
||||||
const key = 'XXXXXXXXXXX';
|
const key = 'XXXXXXXXXXX';
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
swaggerUI!.preauthorizeApiKey('ApiKey', key);
|
swaggerUI!.preauthorizeApiKey('ApiKey', key);
|
||||||
|
|
||||||
// Set examples for orgs, workspaces, and docs.
|
// Set examples for orgs, workspaces, and docs.
|
||||||
|
@ -430,6 +430,7 @@ export class ActiveDocImport {
|
|||||||
const columnData: BulkColValues = {};
|
const columnData: BulkColValues = {};
|
||||||
|
|
||||||
const srcCols = await this._activeDoc.getTableCols(docSession, hiddenTableId);
|
const srcCols = await this._activeDoc.getTableCols(docSession, hiddenTableId);
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
||||||
const srcColIds = srcCols.map(c => c.id as string);
|
const srcColIds = srcCols.map(c => c.id as string);
|
||||||
|
|
||||||
// Only include destination columns that weren't skipped.
|
// Only include destination columns that weren't skipped.
|
||||||
|
Loading…
Reference in New Issue
Block a user