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
This commit is contained in:
Yunwen Zheng
2025-07-03 11:19:09 -04:00
committed by GitHub
parent 27741d9a0c
commit 4414b92e93
@@ -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 }
);