@arbidocs/react 0.5.197 → 0.5.198
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/workforce.js +2 -1
- package/dist/workforce.js.map +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -501,6 +501,7 @@ function useRevokeAgentAccess() {
|
|
|
501
501
|
}
|
|
502
502
|
function useSkills(options) {
|
|
503
503
|
const arbi = chunkSJZRVX7T_cjs.useArbi();
|
|
504
|
+
chunkBEOHXA2Z_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
504
505
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
505
506
|
return reactQuery.useQuery({
|
|
506
507
|
queryKey: chunkSJZRVX7T_cjs.arbiQueryKeys.skillList(workspaceId, options?.includeHidden ?? false),
|
|
@@ -509,7 +510,7 @@ function useSkills(options) {
|
|
|
509
510
|
workspaceId: workspaceId || void 0
|
|
510
511
|
}),
|
|
511
512
|
refetchInterval: options?.live ? 5e3 : false,
|
|
512
|
-
enabled: (options?.enabled ?? true) && arbi.isLoggedIn,
|
|
513
|
+
enabled: (options?.enabled ?? true) && arbi.isLoggedIn && workspaceId !== "",
|
|
513
514
|
staleTime: 3e4
|
|
514
515
|
});
|
|
515
516
|
}
|