Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Apr 11, 2022
1 parent f7a18cf commit 2417883
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
13 changes: 0 additions & 13 deletions src/components/manage/Blocks/DiscodataConnectorBlock/v1/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@ const bulletListView = (items) => (
);

const View = (props) => {
console.log('props', props);
console.log(
'themprov',
props.data?.data_providers
?.map((provider) => ({
provider_url: provider.path,
has_data_query_by_context: provider.has_data_query_by_context,
has_data_query_by_provider: provider.has_data_query_by_provider,
data_query: provider.data_query,
}))
?.filter((provider) => provider.provider_url) || [],
);

const [dataProviders, setDataProviders] = useState({});
const [parentsDataProviders, setParentsDataProviders] = useState({});
const { providers_data, providers_metadata } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ class Edit extends Component {
//set choices for the popup map
schema.properties.popupLong.choices = mapChoices;
schema.properties.popupLat.choices = mapChoices;
schema.properties.popupCountryCode.choices = mapChoices;
schema.properties.popupMapLabel.choices = mapChoices;
// schema.properties.popupCountryCode.choices = mapChoices;
// schema.properties.popupMapLabel.choices = mapChoices;

return schema;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const View = (props) => {
''
)}
</Table.Body>
{/* {Math.ceil(items.length / row_size) > 1 ? (
{Math.ceil(items.length / row_size) > 1 ? (
<Table.Footer>
<Table.Row>
<Table.HeaderCell
Expand All @@ -260,7 +260,7 @@ const View = (props) => {
</Table.Footer>
) : (
''
)} */}
)}
</Table>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ export default () => ({
'popup_map_provider_url',
'popupLong',
'popupLat',
'popupCountryCode',
'popupMapLabel',
],
},
],
Expand Down Expand Up @@ -186,15 +184,6 @@ export default () => ({
description: 'Define popup map Lat',
choices: [],
},
popupCountryCode: {
title: 'Popup Country',
description: 'Define popup country code',
choices: [],
},
popupMapLabel: {
title: 'Popup Map Label',
choices: [],
},
},
required: [],
});

0 comments on commit 2417883

Please sign in to comment.