Skip to content

Commit

Permalink
fix: website input can't clear by user
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanyilmaz committed Jan 18, 2024
1 parent 93dc0e0 commit e044c68
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/store/PostStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ const PostStore = t
}))
.actions(self => ({
setUrl: (url: string) => {
if (!url) {
return;
}

api.createApiInstance(url);
self.url = url;
},
Expand Down Expand Up @@ -127,7 +123,7 @@ const PostStore = t

const postStore = PostStore.create({
page: 1,
url: 'https://techcrunch.com/',
url: '',
});

export default postStore;
Expand Down

0 comments on commit e044c68

Please sign in to comment.