mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
change order of new private method to fix lint after saas/core sync (#587)
This commit is contained in:
parent
7256e0c245
commit
8ecf0d7d0a
@ -209,12 +209,6 @@ class WebhookExternalTable implements IExternalTable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private _initalizeWebhookList(webhooks: WebhookSummary[]){
|
|
||||||
|
|
||||||
this.webhooks.removeAll();
|
|
||||||
this.webhooks.push(...webhooks);
|
|
||||||
}
|
|
||||||
|
|
||||||
public async sync(editor: IEdit): Promise<void> {
|
public async sync(editor: IEdit): Promise<void> {
|
||||||
// Map from external webhookId to local arbitrary rowId.
|
// Map from external webhookId to local arbitrary rowId.
|
||||||
const rowMap = new Map(editor.getRowIds().map(rowId => [editor.getRecord(rowId)!.webhookId, rowId]));
|
const rowMap = new Map(editor.getRowIds().map(rowId => [editor.getRecord(rowId)!.webhookId, rowId]));
|
||||||
@ -272,6 +266,12 @@ class WebhookExternalTable implements IExternalTable {
|
|||||||
}]);
|
}]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private _initalizeWebhookList(webhooks: WebhookSummary[]){
|
||||||
|
|
||||||
|
this.webhooks.removeAll();
|
||||||
|
this.webhooks.push(...webhooks);
|
||||||
|
}
|
||||||
|
|
||||||
private _getErrorString(e: ApiError): string {
|
private _getErrorString(e: ApiError): string {
|
||||||
return e.details?.userError || e.message;
|
return e.details?.userError || e.message;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user