Skip to content

Commit

Permalink
Merge pull request #6178 from mozilla/stop-scene-header-from-flashing
Browse files Browse the repository at this point in the history
fix: Stop custom scene button from flashing
  • Loading branch information
nikk15 authored Jul 26, 2023
2 parents 8cec75e + afc3e23 commit 7c2ec8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/react-components/media-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,7 @@ class MediaBrowserContainer extends Component {
const hasNext = !!(meta && meta.next_cursor);
const hasPrevious = !!searchParams.get("cursor");

const customObjectType =
this.state.result && isSceneApiType ? "scene" : urlSource === "avatars" ? "avatar" : "object";
const customObjectType = isSceneApiType ? "scene" : urlSource === "avatars" ? "avatar" : "object";

let searchDescription;

Expand Down

0 comments on commit 7c2ec8d

Please sign in to comment.