Skip to content

Commit 1622848

Browse files
committed
fix
1 parent 0c9e96c commit 1622848

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/components/ControlPlane/GitRepositories.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export type GitRepoItem = GitReposResponse['items'][0] & {
3636
export function GitRepositories() {
3737
const { data, error, isLoading } = useApiResource(FluxRequest); //404 if component not enabled
3838
const { t } = useTranslation();
39-
const { openInAside } = useSplitter();
39+
const { openInAsideWithApiConfig } = useSplitter();
4040
const errorDialogRef = useRef<ErrorDialogHandle>(null);
4141
const handlePatch = useHandleResourcePatch(errorDialogRef);
4242

@@ -54,7 +54,7 @@ export function GitRepositories() {
5454
const openEditPanel = useCallback(
5555
(item: GitRepoItem) => {
5656
const identityKey = `${item.kind}:${item.metadata.namespace ?? ''}:${item.metadata.name}`;
57-
openInAside(
57+
openInAsideWithApiConfig(
5858
<Fragment key={identityKey}>
5959
<YamlSidePanel
6060
isEdit={true}
@@ -63,9 +63,10 @@ export function GitRepositories() {
6363
onApply={async (parsed) => await handlePatch(item, parsed)}
6464
/>
6565
</Fragment>,
66+
apiConfig,
6667
);
6768
},
68-
[openInAside, handlePatch, apiConfig],
69+
[openInAsideWithApiConfig, handlePatch, apiConfig],
6970
);
7071

7172
const columns = useMemo<AnalyticalTableColumnDefinition[]>(

src/components/Yaml/YamlViewerSchemaLoader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const YamlViewerSchemaLoader: FC<YamlViewerSchemaLoaderProps> = ({
5151
show(t('errors.cannotLoadSchema'));
5252
hasShownErrorRef.current = true;
5353
}
54-
}, [error, show]);
54+
}, [error, show, t]);
5555

5656
const schema =
5757
crdData?.spec.versions?.find(({ name }) => name === apiVersion)?.schema.openAPIV3Schema ??

0 commit comments

Comments
 (0)