fix(sla): adiciona viewerId na query companies.list
All checks were successful
All checks were successful
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4be622c838
commit
a55f889689
1 changed files with 4 additions and 1 deletions
|
|
@ -55,7 +55,10 @@ export function CompanySlaManager() {
|
|||
) as CompanyWithSla[] | undefined
|
||||
|
||||
// Todas as empresas (para o dialog de adicionar)
|
||||
const allCompanies = useQuery(api.companies.list, { tenantId }) as Company[] | undefined
|
||||
const allCompanies = useQuery(
|
||||
api.companies.list,
|
||||
viewerId ? { tenantId, viewerId } : "skip"
|
||||
) as Company[] | undefined
|
||||
|
||||
const filteredCompaniesWithSla = useMemo(() => {
|
||||
if (!companiesWithSla) return []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue