"fix" BulkDeleteProvisionedResource tests

This commit is contained in:
Ashley Harrison
2025-12-08 15:42:24 +00:00
parent d3e807d6e2
commit 418c1a4d5a
@@ -1,4 +1,5 @@
import { useCallback, useState } from 'react';
import { flushSync } from 'react-dom';
import { FormProvider, useForm } from 'react-hook-form';
import { AppEvents } from '@grafana/data';
@@ -43,7 +44,10 @@ function FormContent({ initialValues, selectedItems, repository, workflowOptions
const workflow = watch('workflow');
const handleSubmitForm = async (data: BulkActionFormData) => {
setHasSubmitted(true);
// TODO why?
flushSync(() => {
setHasSubmitted(true);
});
const resources = collectSelectedItems(selectedItems);