Skip to content
Snippets Groups Projects
Unverified Commit fc737436 authored by Oisin Coveney's avatar Oisin Coveney Committed by GitHub
Browse files

fix(sdk): Fix entity ID logic to use the correct status (#47748)


* Fix entity ID status

* bump ci

---------

Co-authored-by: default avatarBryan Maass <bryan.maass@gmail.com>
parent 836bb7d0
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ export type EntityType = typeof validEntityTypes[number];
type TranslateEntityIdRequest = Partial<Record<EntityType, BaseEntityId[]>>;
export type TranslateEntityIdResponseSuccess = {
status: "success";
status: "ok";
id: string | number;
type: EntityType;
};
......
......@@ -71,7 +71,7 @@ export const useValidatedEntityId = <
return { id: null, isLoading: false, isError: true } as const;
}
if (entity_ids && entity_ids[id]?.status === "success") {
if (entity_ids && entity_ids[id]?.status === "ok") {
return {
id: entity_ids[id].id as TReturnedId,
isLoading: false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment