mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 09:33:19 +03:00
Avoid changing Custom properties tab automatically every time filter changes (#3777)
Follow-up to https://github.com/plausible/analytics/pull/3719 The previous behavior was predicated on: - Allowing a single custom property filter - Allowing breaking down only by the chosen custom property filter Now these restrictions are removed the previous auto-switching just becomes annoying
This commit is contained in:
parent
19ce62db61
commit
c6e06359c6
@ -1,4 +1,4 @@
|
||||
import React, { useCallback, useState, useEffect } from "react";
|
||||
import React, { useCallback, useState } from "react"
|
||||
import ListReport from "../reports/list";
|
||||
import Combobox from '../../components/combobox'
|
||||
import * as api from '../../api'
|
||||
@ -15,10 +15,6 @@ export default function Properties(props) {
|
||||
|
||||
const [propKey, setPropKey] = useState(choosePropKey())
|
||||
|
||||
useEffect(() => {
|
||||
setPropKey(choosePropKey())
|
||||
}, [query.filters.goal, query.filters.props])
|
||||
|
||||
function singleGoalFilterApplied() {
|
||||
const goalFilter = query.filters.goal
|
||||
if (goalFilter) {
|
||||
|
Loading…
Reference in New Issue
Block a user