Reverse cross partition query behavior in DE Query settings pane (#1521)

Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
This commit is contained in:
Predrag Klepic
2023-07-10 20:30:53 +02:00
committed by GitHub
parent e9ea887fe7
commit ed9ee07e81
6 changed files with 13 additions and 24 deletions

View File

@@ -141,14 +141,12 @@ export const createCollectionContextMenuButton = (
return items;
};
export const createSampleCollectionContextMenuButton = (
selectedCollection: ViewModels.CollectionBase
): TreeNodeMenuItem[] => {
export const createSampleCollectionContextMenuButton = (): TreeNodeMenuItem[] => {
const items: TreeNodeMenuItem[] = [];
if (userContext.apiType === "SQL") {
items.push({
iconSrc: AddSqlQueryIcon,
onClick: () => selectedCollection && useTabs.getState().openAndActivateReactTab(ReactTabKind.QueryCopilot),
onClick: () => useTabs.getState().openAndActivateReactTab(ReactTabKind.QueryCopilot),
label: "New SQL Query",
});
}