Git UI Sync Create Dashboard: Fix update dashboard path field when folder selection changes (#107482)

Git UI sync when update folder selection, path field doesnt get update in the edit form
pull/107582/head
Yunwen Zheng 2 weeks ago committed by GitHub
parent 27741d9a0c
commit 4414b92e93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      public/app/features/provisioning/hooks/useGetResourceRepositoryView.ts

@ -19,7 +19,7 @@ interface RepositoryViewData {
// This is safe to call as a viewer (you do not need full access to the Repository configs)
export const useGetResourceRepositoryView = ({ name, folderName }: GetResourceRepositoryArgs): RepositoryViewData => {
const { data: settingsData, isLoading: isSettingsLoading } = useGetFrontendSettingsQuery();
const skipFolderQuery = name || !folderName;
const skipFolderQuery = !folderName;
const { data: folder, isLoading: isFolderLoading } = useGetFolderQuery(
skipFolderQuery ? skipToken : { name: folderName }
);

Loading…
Cancel
Save