chore: Move to prettier standard double quotes (#1309)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
// @flow
|
||||
import { pick } from 'lodash';
|
||||
import { action, computed, observable } from 'mobx';
|
||||
import BaseModel from 'models/BaseModel';
|
||||
import Document from 'models/Document';
|
||||
import { client } from 'utils/ApiClient';
|
||||
import type { NavigationNode } from 'types';
|
||||
import { pick } from "lodash";
|
||||
import { action, computed, observable } from "mobx";
|
||||
import BaseModel from "models/BaseModel";
|
||||
import Document from "models/Document";
|
||||
import { client } from "utils/ApiClient";
|
||||
import type { NavigationNode } from "types";
|
||||
|
||||
export default class Collection extends BaseModel {
|
||||
@observable isSaving: boolean;
|
||||
@@ -16,7 +16,7 @@ export default class Collection extends BaseModel {
|
||||
icon: string;
|
||||
color: string;
|
||||
private: boolean;
|
||||
type: 'atlas' | 'journal';
|
||||
type: "atlas" | "journal";
|
||||
documents: NavigationNode[];
|
||||
createdAt: ?string;
|
||||
updatedAt: ?string;
|
||||
@@ -103,18 +103,18 @@ export default class Collection extends BaseModel {
|
||||
|
||||
toJS = () => {
|
||||
return pick(this, [
|
||||
'id',
|
||||
'name',
|
||||
'color',
|
||||
'description',
|
||||
'icon',
|
||||
'private',
|
||||
"id",
|
||||
"name",
|
||||
"color",
|
||||
"description",
|
||||
"icon",
|
||||
"private",
|
||||
]);
|
||||
};
|
||||
|
||||
export = () => {
|
||||
return client.get(
|
||||
'/collections.export',
|
||||
"/collections.export",
|
||||
{ id: this.id },
|
||||
{ download: true }
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user