From: Dessalines Date: Tue, 24 May 2022 16:36:02 +0000 (-0400) Subject: Fix lint X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=29bdd3bafdaac7e7b8574869450462819249641e;p=lemmy-ui.git Fix lint --- diff --git a/package.json b/package.json index 6b0090c..e14f15d 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "eslint-plugin-prettier": "^4.0.0", "husky": "^7.0.4", "import-sort-style-module": "^6.0.0", - "lemmy-js-client": "0.16.4-rc.2", + "lemmy-js-client": "0.17.0-rc.10", "lint-staged": "^12.4.1", "mini-css-extract-plugin": "^2.6.0", "node-fetch": "^2.6.1", diff --git a/src/shared/components/community/community-form.tsx b/src/shared/components/community/community-form.tsx index 0f12a25..d8a858d 100644 --- a/src/shared/components/community/community-form.tsx +++ b/src/shared/components/community/community-form.tsx @@ -364,6 +364,7 @@ export class CommunityForm extends Component< UserService.Instance.myUserInfo.follows.push({ community, follower: person, + pending: false, }); UserService.Instance.myUserInfo.moderates.push({ community, diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index baa655f..b054b02 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -506,6 +506,7 @@ export class Sidebar extends Component { UserService.Instance.myUserInfo.follows.push({ community: i.props.community_view.community, follower: UserService.Instance.myUserInfo.local_user_view.person, + pending: false, }); } diff --git a/yarn.lock b/yarn.lock index 2e326f1..f423018 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4813,10 +4813,10 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" -lemmy-js-client@0.16.4-rc.2: - version "0.16.4-rc.2" - resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.16.4-rc.2.tgz#849b054ff37668c242db0202070bdb35f357f069" - integrity sha512-7ftHxpecqhHddfTJJC02eMB6N0jrtUBZVjt6CGC74J06kplBrsBQVETBqm33G1h1/SPHRHU1mqQ+f03PwsL+Ng== +lemmy-js-client@0.17.0-rc.10: + version "0.17.0-rc.10" + resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.17.0-rc.10.tgz#fbec2ffd515a5bfc51d00f2123bac352d1ca161d" + integrity sha512-JNHoCn66uRlvMGA/G2X6rSAfnPyGc+5rTbHzsn9HC8bkfwLzAMnr2MmWOZUUVIjef433W6BRH3tHN/+clEudAw== levn@^0.4.1: version "0.4.1"