Skip to content

Commit

Permalink
Fixing bug related to double group in topic creation form (#1773)
Browse files Browse the repository at this point in the history
  • Loading branch information
szczygiel-m authored Nov 6, 2023
1 parent 3831522 commit 154f471
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { dispatchErrorNotification } from '@/utils/notification-utils';
import { createTopic as doCreateTopic } from '@/api/hermes-client';
import { ref } from 'vue';
import { storeToRefs } from 'pinia';
import { topicName } from '@/utils/topic-utils/topic-utils';
import { useAppConfigStore } from '@/store/app-config/useAppConfigStore';
import {
useFormTopic,
Expand Down Expand Up @@ -49,6 +50,7 @@ export function useCreateTopic(group: string): UseCreateTopic {
notificationsStore,
useGlobalI18n().t('notifications.topic.create.failure'),
);
form.value.name = topicName(form.value.name);
} finally {
creatingTopic.value = false;
}
Expand Down

0 comments on commit 154f471

Please sign in to comment.