File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,10 @@ function addHookedCollectionsToStore ({ store, collections }) {
4444 } )
4545}
4646
47+ async function getHookedCollectionsFromStore ( { store } ) {
48+ return store . get ( 'meilisearch_hooked' )
49+ }
50+
4751function addLifecycles ( { client, collections } ) {
4852 // Add lifecyles
4953 collections . map ( collection => {
@@ -64,8 +68,9 @@ function addLifecycles ({ client, collections }) {
6468async function initHooks ( store ) {
6569 try {
6670 const credentials = await getCredentials ( )
67- console . log ( { credentials } )
68- if ( credentials . host ) {
71+ const getHookedCollections = await getHookedCollectionsFromStore ( { store } )
72+
73+ if ( credentials . host && getHookedCollections ) {
6974 const client = await getClient ( credentials )
7075 // get list of indexes in MeiliSearch Instance
7176 const indexes = ( await getIndexes ( client ) ) . map ( index => index . uid )
You can’t perform that action at this time.
0 commit comments