Skip to content

Commit

Permalink
fix error export
Browse files Browse the repository at this point in the history
  • Loading branch information
Eran Witkon committed Jun 27, 2024
1 parent 3f66985 commit c1efb94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/example-tutorial-todo-aip-app/src/useProjects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { MockProject } from "./mocks";
import Mocks from "./mocks";

function useProjects() {
const { data, isLoading, isValidating, isError, mutate } = useSWR<
const { data, isLoading, isValidating, error, mutate } = useSWR<
MockProject[]
>("projects", async () => {
// Try to implement this with the Ontology SDK!
Expand Down Expand Up @@ -58,7 +58,7 @@ function useProjects() {
projects: data,
isLoading,
isValidating,
isError,
isError: error,
createProject,
deleteProject,
getRecommendedProjectDescription,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { MockProject } from "./mocks";
import Mocks from "./mocks";

function useProjects() {
const { data, isLoading, isValidating, isError, mutate } = useSWR<
const { data, isLoading, isValidating, error, mutate } = useSWR<
MockProject[]
>("projects", async () => {
// Try to implement this with the Ontology SDK!
Expand Down Expand Up @@ -58,7 +58,7 @@ function useProjects() {
projects: data,
isLoading,
isValidating,
isError,
isError: error,
createProject,
deleteProject,
getRecommendedProjectDescription,
Expand Down

0 comments on commit c1efb94

Please sign in to comment.