File tree 1 file changed +2
-2
lines changed
src/Explorer/Panes/AddMaterializedViewPanel
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ export const AddMaterializedViewPanel = (props: AddMaterializedViewPanelProps):
214
214
const materializedViewIdTrimmed : string = materializedViewId . trim ( ) ;
215
215
216
216
const materializedViewDefinition : DataModels . MaterializedViewDefinition = {
217
- sourceCollectionId : sourceContainer . id ( ) ,
217
+ sourceCollectionId : selectedSourceContainer . id ( ) ,
218
218
definition : definition ,
219
219
} ;
220
220
@@ -327,7 +327,7 @@ export const AddMaterializedViewPanel = (props: AddMaterializedViewPanelProps):
327
327
< Dropdown
328
328
placeholder = "Choose source container"
329
329
options = { sourceContainerOptions }
330
- defaultSelectedKey = { sourceContainer ?. rid }
330
+ defaultSelectedKey = { selectedSourceContainer ?. rid }
331
331
styles = { chooseSourceContainerStyles ( ) }
332
332
style = { chooseSourceContainerStyle ( ) }
333
333
onChange = { ( _ , options : IDropdownOption ) => setSelectedSourceContainer ( options . data as Collection ) }
You can’t perform that action at this time.
0 commit comments