Skip to content

Commit

Permalink
Merge pull request reactplay#407 from reactplay/Issue-404-workflow-fixes
Browse files Browse the repository at this point in the history
Issue-404-Featured-play-search-play-fix
  • Loading branch information
atapas committed Jul 23, 2022
2 parents 2e79e0c + 160457e commit e62bc77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
3 changes: 2 additions & 1 deletion src/common/playlists/PlayThumbnail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const Author = ({ user }) => {
const PlayThumbnail = ({ play }) => {
const [cover, setCover] = useState(null);


useEffect(() => {
// Set the cover image
// if it is passed as a meta data
Expand All @@ -55,7 +56,7 @@ const PlayThumbnail = ({ play }) => {

return (
<li key={play.id}>
<Link to={play.id} state={{ id: play.id }}>
<Link to={`/plays/${play.id}`} state={{ id: play.id }}>
<div className='play-thumb'>
<Shimmer>
<img src={cover} alt='' className='play-thumb-img' />
Expand Down
11 changes: 3 additions & 8 deletions src/common/services/request/query/fetch-plays-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const FetchPlaysFilter = {
},
// Filter Plays by a search string in name or description
filterPlaysBySearchString(Obj) {
const payload = {
return {
display: "Filter Plays by a search string in name or description",
name: "Fetch_Plays",
function: "plays",
Expand Down Expand Up @@ -76,23 +76,18 @@ export const FetchPlaysFilter = {
{
field: "name",
operator: "iregex",
value: Obj.name,
value: Obj.name.toLowerCase(),
type: "string",
},
{
field: "description",
operator: "iregex",
value: Obj.name,
value: Obj.name.toLowerCase(),
type: "string",
},
],
},
};

if (!env && !preview) {
payload.where.clause.push(defaultClause);
}
return payload;
},
// Filter plays by level, user, language, and multiple tags
/**
Expand Down

0 comments on commit e62bc77

Please sign in to comment.