新增条件避免意外触发查询
This commit is contained in:
@@ -278,7 +278,7 @@ const Toolbar: React.FC<ToolbarProps> = ({ hiddenButtons, queryType }) => {
|
|||||||
>({});
|
>({});
|
||||||
// 添加 useEffect 来查询计算属性
|
// 添加 useEffect 来查询计算属性
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!highlightFeature || !selectedDate) {
|
if (!highlightFeature || !selectedDate || !showPropertyPanel) {
|
||||||
setComputedProperties({});
|
setComputedProperties({});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user