From d974b3baeaa5c6d92c9a57a906fac2a28cb40c19 Mon Sep 17 00:00:00 2001 From: Alvin Dimas Satria <56182633+alvin371@users.noreply.github.com> Date: Mon, 13 Mar 2023 17:42:12 +0700 Subject: [PATCH] fix: import post (#1762) * fix: set debio tips (#1753) feat: set debio tips * chore(deps): bump google-github-actions/release-please-action from 3.7.4 to 3.7.5 (#1754) chore(deps): bump google-github-actions/release-please-action Bumps [google-github-actions/release-please-action](https://github.com/google-github-actions/release-please-action) from 3.7.4 to 3.7.5. - [Release notes](https://github.com/google-github-actions/release-please-action/releases) - [Changelog](https://github.com/google-github-actions/release-please-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/google-github-actions/release-please-action/compare/d3c71f9a0a55385580de793de58da057b3560862...e0b9d1885d92e9a93d5ce8656de60e3b806e542c) --- updated-dependencies: - dependency-name: google-github-actions/release-please-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: change create on import validation --------- Signed-off-by: dependabot[bot] Co-authored-by: Kristian Ruben <56469224+rubenkristian@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- src/components/PostCreate/PostCreate.tsx | 1 + src/components/PostImport/PostImport.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/PostCreate/PostCreate.tsx b/src/components/PostCreate/PostCreate.tsx index 4ff44c6ef..be117dc0d 100644 --- a/src/components/PostCreate/PostCreate.tsx +++ b/src/components/PostCreate/PostCreate.tsx @@ -97,6 +97,7 @@ export const PostCreate: React.FC = props => { const handlePostUrlChange = (url: string | null) => { setImport(url); + setEditorValue(url); }; const handleConfirmNSFWTags = (tags: string[]) => { diff --git a/src/components/PostImport/PostImport.tsx b/src/components/PostImport/PostImport.tsx index 3eaa3ea51..0be5af5be 100644 --- a/src/components/PostImport/PostImport.tsx +++ b/src/components/PostImport/PostImport.tsx @@ -54,11 +54,11 @@ export const PostImport: React.FC = props => { event: React.ChangeEvent, ): void => { const url = event.target.value; - setError(null); setUrl(url); setSocial(null); setPostId(null); + onChange(url); if (isUrl(url)) { parseUrl(url);