Skip to content

Commit 1e63c91

Browse files
fix: logic error
1 parent 22dcc52 commit 1e63c91

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

js/FeedzyLoop/placeholder.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ const BlockPlaceholder = ({ attributes, setAttributes, onSaveFeed }) => {
104104

105105
const handleFeedChange = (value) => {
106106
setAttributes({ feed: value });
107-
setValidationResults([]);
108107
};
109108

110109
const renderValidationResults = () => {
@@ -196,7 +195,7 @@ const BlockPlaceholder = ({ attributes, setAttributes, onSaveFeed }) => {
196195
</BaseControl>
197196

198197
<div>
199-
<Button variant="primary" onClick={handleLoadFeed}>
198+
<Button variant="primary" onClick={() => handleLoadFeed()}>
200199
{__('Load Feed', 'feedzy-rss-feeds')}
201200
</Button>
202201
</div>

0 commit comments

Comments
 (0)