Skip to content

Commit

Permalink
Revert "Reset default value select for removed dataset"
Browse files Browse the repository at this point in the history
This reverts commit bd07e169f009862647327bf3d15e02f98ea8be9b.
  • Loading branch information
agatapst committed Jan 27, 2021
1 parent e43102c commit 2d72446
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import React, { useCallback, useEffect } from 'react';
import React, { useCallback } from 'react';
import { FormInstance } from 'antd/lib/form';
import { useChangeEffect } from 'src/common/hooks/useChangeEffect';
import { AsyncSelect } from 'src/components/Select';
Expand Down Expand Up @@ -68,12 +68,6 @@ export function DefaultValueSelect({
}
});

useEffect(() => {
if (datasetId == null || column == null) {
resetFieldValue();
}
}, [datasetId, column, resetFieldValue]);

async function loadOptions() {
if (datasetId == null || !column) return [];

Expand Down

0 comments on commit 2d72446

Please sign in to comment.