diff --git a/src/components/dashboards/dashboard-builder.tsx b/src/components/dashboards/dashboard-builder.tsx
index 063067b..6319298 100644
--- a/src/components/dashboards/dashboard-builder.tsx
+++ b/src/components/dashboards/dashboard-builder.tsx
@@ -462,10 +462,11 @@ export function DashboardBuilder({ dashboardId, editable = true, mode = "edit" }
const tenantId = session?.user.tenantId ?? DEFAULT_TENANT_ID
const viewerId = convexUserId as Id<"users"> | null
const canEdit = editable && Boolean(viewerId) && isStaff
+ const hasDashboardId = typeof dashboardId === "string" && dashboardId.length > 0
const detail = useQuery(
api.dashboards.get,
- viewerId
+ viewerId && hasDashboardId
? ({
tenantId,
viewerId: viewerId as Id<"users">,
diff --git a/src/components/dashboards/dashboard-list.tsx b/src/components/dashboards/dashboard-list.tsx
index e1d0258..6ae934a 100644
--- a/src/components/dashboards/dashboard-list.tsx
+++ b/src/components/dashboards/dashboard-list.tsx
@@ -199,6 +199,10 @@ export function DashboardListView() {
const activeDashboards = dashboards.filter((dashboard) => !dashboard.isArchived)
+ const renderCreateButton = () => (
+
• Arraste e redimensione widgets livremente no canvas.