mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
removed logging
This commit is contained in:
parent
96193ab8c2
commit
16959f1519
@ -30,7 +30,6 @@ export const Layer = (props: LayerProps) => {
|
||||
const resetItems = useResetItems();
|
||||
|
||||
useEffect(() => {
|
||||
console.log("props.data changed");
|
||||
|
||||
resetItems(props);
|
||||
props.data.map(item => {
|
||||
@ -38,16 +37,12 @@ export const Layer = (props: LayerProps) => {
|
||||
addItem(item);
|
||||
})
|
||||
addLayer(props);
|
||||
console.table(items)
|
||||
}, [props.data])
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{items.filter(item => item.layer?.name === props.name)?.map((place: Item) => {
|
||||
console.log(`layer ${props.name} rendering ....`);
|
||||
|
||||
{items.filter(item => item.layer?.name === props.name)?.map((place: Item) => {
|
||||
const tags = getTags(place);
|
||||
let color1 = "#666";
|
||||
let color2 = "RGBA(35, 31, 32, 0.2)";
|
||||
|
||||
@ -6,7 +6,6 @@ import { useLayers } from '../hooks/useLayers'
|
||||
export default function AddButton({setSelectMode} : {setSelectMode: React.Dispatch<React.SetStateAction<any>>}) {
|
||||
|
||||
const layers = useLayers();
|
||||
console.log("Layers: " +layers);
|
||||
|
||||
return (
|
||||
<div className="dropdown dropdown-top dropdown-end dropdown-hover z-500 absolute right-5 bottom-5" >
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user