Skip to content

Commit

Permalink
Revert "Add default values in JS files"
Browse files Browse the repository at this point in the history
This reverts commit 22e4d62.
  • Loading branch information
SantosGuillamot committed Nov 29, 2023
1 parent 5698600 commit c592630
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/blocks/interactive/likes-number/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
const { store } = window.__experimentalInteractivity;

store({
state: {
wpmovies: {
likedMovies: [],
},
},
selectors: {
wpmovies: {
likesCount: ({ state }) => state.wpmovies.likedMovies.length,
Expand Down
5 changes: 0 additions & 5 deletions src/blocks/interactive/movie-search/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ const updateURL = async (value) => {
};

store({
state: {
wpmovies: {
searchValue: '',
},
},
actions: {
wpmovies: {
updateSearch: async ({ state, event }) => {
Expand Down
5 changes: 0 additions & 5 deletions src/blocks/interactive/video-player/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
const { store } = window.__experimentalInteractivity;

store({
state: {
wpmovies: {
currentVideo: '',
},
},
selectors: {
wpmovies: {
isPlaying: ({ state }) => state.wpmovies.currentVideo !== '',
Expand Down

0 comments on commit c592630

Please sign in to comment.