Skip to content

Commit

Permalink
fix: import post (#1762)
Browse files Browse the repository at this point in the history
* 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](google-github-actions/release-please-action@d3c71f9...e0b9d18)

---
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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: change create on import validation

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Kristian Ruben <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Mar 13, 2023
1 parent 63781e5 commit d974b3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/PostCreate/PostCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export const PostCreate: React.FC<PostCreateProps> = props => {

const handlePostUrlChange = (url: string | null) => {
setImport(url);
setEditorValue(url);
};

const handleConfirmNSFWTags = (tags: string[]) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/PostImport/PostImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export const PostImport: React.FC<PostImportProps> = props => {
event: React.ChangeEvent<HTMLInputElement>,
): void => {
const url = event.target.value;

setError(null);
setUrl(url);
setSocial(null);
setPostId(null);
onChange(url);

if (isUrl(url)) {
parseUrl(url);
Expand Down

0 comments on commit d974b3b

Please sign in to comment.