Skip to content

Commit

Permalink
fix: add layer from dataset explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
majkshkurti committed Sep 17, 2024
1 parent 3fc965e commit 90c0353
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apps/web/components/modals/DatasetExplorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,18 @@ const DatasetExplorerModal: React.FC<DatasetExplorerProps> = ({ open, onClose, p
<Paper elevation={0} sx={{ backgroundImage: "none" }}>
<FoldersTreeView
queryParams={datasetSchema}
setQueryParams={setDatasetSchema}
enableActions={false}
setQueryParams={(params, teamId, organizationId) => {
const newQueryParams = { ...queryParams, page: 1 };
delete newQueryParams.team_id;
delete newQueryParams.organization_id;
if (teamId) {
newQueryParams.team_id = teamId;
} else if (organizationId) {
newQueryParams.organization_id = organizationId;
}
setQueryParams(newQueryParams);
setDatasetSchema(params);
}}
/>
</Paper>
</Grid>
Expand Down

0 comments on commit 90c0353

Please sign in to comment.