Skip to content

Commit

Permalink
Merge branch 'development' into feat/3053-quick-apps-new-field
Browse files Browse the repository at this point in the history
  • Loading branch information
Gimir authored Jan 29, 2025
2 parents faba7b3 + 7571b46 commit 9860667
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ interface Props {
readonly?: boolean;
groupVersions?: boolean;
textBeforeSelector?: string | null;
selectedEntityId?: string;
excludeEntityId?: string;
onChangeSelectedVersion?: (
versionGroupId: string,
newVersion: NonNullable<PublicVersionGroups[string]>['selectedVersion'],
oldVersion: NonNullable<PublicVersionGroups[string]>['selectedVersion'],
) => void;
selectedEntityId?: string;
excludeEntityId?: string;
}

export function PublicVersionSelector({
Expand All @@ -38,9 +38,9 @@ export function PublicVersionSelector({
readonly,
groupVersions,
textBeforeSelector,
onChangeSelectedVersion,
selectedEntityId,
excludeEntityId,
onChangeSelectedVersion,
}: Props) {
const { t } = useTranslation(Translation.Chat);

Expand Down
6 changes: 4 additions & 2 deletions apps/chat/src/store/publication/publication.epics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ const approvePublicationEpic: AppEpic = (action$, state$) =>
});

const versionGroups = uniq(
itemsToRemoveIds.map((id) =>
idsToExclude.map((id) =>
getIdWithoutVersionFromApiKey(id, parseConversationApiKey),
),
);
Expand All @@ -860,6 +860,7 @@ const approvePublicationEpic: AppEpic = (action$, state$) =>
name: conv.name,
folderId: conv.folderId,
publicationInfo: {
...conv.publicationInfo,
isNotExist: true,
},
publishedWithMe: false,
Expand Down Expand Up @@ -990,7 +991,7 @@ const approvePublicationEpic: AppEpic = (action$, state$) =>
return !hasPrompts && hasHiddenPrompts;
});
const versionGroups = uniq(
itemsToRemoveIds.map((id) => {
idsToExclude.map((id) => {
return getIdWithoutVersionFromApiKey(id, parsePromptApiKey);
}),
);
Expand All @@ -1011,6 +1012,7 @@ const approvePublicationEpic: AppEpic = (action$, state$) =>
name: prompt.name,
folderId: prompt.folderId,
publicationInfo: {
...prompt.publicationInfo,
isNotExist: true,
},
publishedWithMe: false,
Expand Down

0 comments on commit 9860667

Please sign in to comment.