Updated date range handling. Fixed share page.

This commit is contained in:
Mike Cao committed 2023-03-08 16:37:43 -08:00
1 parent 3fc5f5151b
commit 696d9c978c
28 files changed
+166 -280

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ function DateFilter({ websiteId, value, className }) {
const [showPicker, setShowPicker] = useState(false);
async function handleDateChange(value) {
if (value === 'all') {
if (value === 'all' && websiteId) {
const data = await get(`/websites/${websiteId}`);
if (data) {