Skip to content

Commit

Permalink
feat(edit-bookmark): Refactor app provider query to use getAppManifes…
Browse files Browse the repository at this point in the history
…t method
  • Loading branch information
odinr committed Nov 13, 2024
1 parent 47698e0 commit 793cc9e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ChangeEvent, useCallback, useEffect, useMemo, useState } from 'react';

import { map, of } from 'rxjs';
import { of } from 'rxjs';

import { useObservableState } from '@equinor/fusion-observable/react';

Expand Down Expand Up @@ -78,9 +78,7 @@ export const EditBookmarkModal = ({
useMemo(
() =>
bookmark && appProvider
? appProvider.appClient
.query({ appKey: bookmark.appKey })
.pipe(map((x) => x.value.name))
? appProvider.getAppManifest(bookmark.appKey)
: of(undefined),
[appProvider, bookmark],
),
Expand Down

0 comments on commit 793cc9e

Please sign in to comment.