fix: bulk update event type dialog logic (#16014)
* improvise code * bulk update model issue * Update BulkEditDefaultForEventsModal.tsx
This commit is contained in:
1 parent
89c08868f6
commit
f4f09eaf9e
2 files changed
+3
-2
No files matched your search
@@ -27,6 +27,7 @@ export function BulkEditDefaultForEventsModal(props: {
|
||||
});
|
||||
|
||||
const eventTypesSelected = form.watch("eventTypeIds");
|
||||
const isButtonDisabled = eventTypesSelected.length === 0;
|
||||
|
||||
if (isFetching || !open || !data?.eventTypes) return null;
|
||||
|
||||
@@ -79,7 +80,7 @@ export function BulkEditDefaultForEventsModal(props: {
|
||||
utils.viewer.getUsersDefaultConferencingApp.invalidate();
|
||||
}}
|
||||
/>
|
||||
<Button type="submit" color="primary" loading={props.isPending}>
|
||||
<Button type="submit" color="primary" loading={props.isPending} disabled={isButtonDisabled}>
|
||||
{t("update")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
|
||||
Reference in new issue
Block a user