Skip to content

Commit

Permalink
fix sourcerer
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkime committed Jun 22, 2024
1 parent 83dba8a commit f8916f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const DataViewPicker = memo(() => {

const { dataViewId } = useSelector(sourcererAdapterSelector);

const createNewDataView = useCallback(() => {
closeDataViewEditor.current = dataViewEditor.openEditor({
const createNewDataView = useCallback(async () => {
closeDataViewEditor.current = await dataViewEditor.openEditor({
// eslint-disable-next-line no-console
onSave: () => console.log('new data view saved'),
allowAdHocDataView: true,
Expand All @@ -58,7 +58,7 @@ export const DataViewPicker = memo(() => {
}

const dataViewInstance = await data.dataViews.get(dataViewId);
closeFieldEditor.current = dataViewFieldEditor.openEditor({
closeFieldEditor.current = await dataViewFieldEditor.openEditor({
ctx: {
dataView: dataViewInstance,
},
Expand Down

0 comments on commit f8916f4

Please sign in to comment.