mirror of
https://github.com/usememos/memos.git
synced 2024-12-19 00:51:30 +03:00
chore: fix dispatch memo pinned (#1152)
This commit is contained in:
parent
6e2e7ac782
commit
d6e4b5e889
@ -275,10 +275,7 @@ const CreateIdentityProviderDialog: React.FC<Props> = (props: Props) => {
|
||||
{type === "OAUTH2" && (
|
||||
<>
|
||||
{isCreating && (
|
||||
<p className="border rounded-md p-2 text-sm w-full mb-2 break-all">
|
||||
Redirect URL: {absolutifyLink("/auth/callback")}{" "}
|
||||
RedirectRedirectRedirectRedirectRedirectRedirectRedirectRedirectRedirectRedirectRedirect
|
||||
</p>
|
||||
<p className="border rounded-md p-2 text-sm w-full mb-2 break-all">Redirect URL: {absolutifyLink("/auth/callback")}</p>
|
||||
)}
|
||||
<Typography className="!mb-1" level="body2">
|
||||
Client ID<span className="text-red-600">*</span>
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { uniqBy } from "lodash-es";
|
||||
import { omit, uniqBy } from "lodash-es";
|
||||
import * as api from "../../helpers/api";
|
||||
import { DEFAULT_MEMO_LIMIT } from "../../helpers/consts";
|
||||
import { useUserStore } from "./";
|
||||
@ -97,7 +97,7 @@ export const useMemoStore = () => {
|
||||
patchMemo: async (memoPatch: MemoPatch): Promise<Memo> => {
|
||||
const { data } = (await api.patchMemo(memoPatch)).data;
|
||||
const memo = convertResponseModelMemo(data);
|
||||
store.dispatch(patchMemo(memo));
|
||||
store.dispatch(patchMemo(omit(memo, "pinned")));
|
||||
return memo;
|
||||
},
|
||||
pinMemo: async (memoId: MemoId) => {
|
||||
|
Loading…
Reference in New Issue
Block a user