File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/compass-indexes/src/stores Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ export function activateIndexesPlugin(
77
77
const store : IndexesStore = createStore (
78
78
reducer ,
79
79
{
80
+ isWritable : instance . isWritable ,
81
+ description : instance . description ,
80
82
namespace : options . namespace ,
81
83
serverVersion : options . serverVersion ,
82
84
isReadonlyView : options . isReadonly ,
@@ -138,10 +140,6 @@ export function activateIndexesPlugin(
138
140
void store . dispatch ( refreshSearchIndexes ( ) ) ;
139
141
} ) ;
140
142
141
- // set the initial values
142
- store . dispatch ( writeStateChanged ( instance . isWritable ) ) ;
143
- store . dispatch ( getDescription ( instance . description ) ) ;
144
-
145
143
// these can change later
146
144
on ( instance , 'change:isWritable' , ( ) => {
147
145
store . dispatch ( writeStateChanged ( instance . isWritable ) ) ;
You can’t perform that action at this time.
0 commit comments