refactor: user routes to comply with OpenAPI spec using flask-restx

This commit is contained in:
Siddhant Rai
2024-09-27 20:08:46 +05:30
parent d6cb66cd2f
commit b084e3074d
5 changed files with 1552 additions and 1060 deletions

View File

@@ -97,14 +97,13 @@ export default function CreateAPIKeyModal({
<div className="my-4">
<Dropdown
placeholder={t('modals.createAPIKey.sourceDoc')}
selectedValue={sourcePath}
selectedValue={sourcePath ? sourcePath.name : null}
onSelect={(selection: {
name: string;
id: string;
type: string;
}) => {
setSourcePath(selection);
console.log(selection);
}}
options={extractDocPaths()}
size="w-full"