Skip to content

Commit

Permalink
front: fix type for macro nodes full name
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Greiner <[email protected]>
  • Loading branch information
louisgreiner committed Feb 25, 2025
1 parent b77308a commit 5134d15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export const loadAndIndexNge = async (
// Enhance nodes by calling the search API
const searchResults = await executeSearch(state, dispatch);
searchResults.forEach((searchResult) => {
const macroNode = {
fullName: searchResult.name,
const macroNode: Pick<NodeIndexed, 'full_name' | 'trigram' | 'geocoord'> = {
full_name: searchResult.name,
trigram: searchResult.trigram + (searchResult.ch ? `/${searchResult.ch}` : ''),
geocoord: {
lng: searchResult.geographic.coordinates[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const createMacroNode = async (
console.error(e);
}
};

export const updateMacroNode = async (
state: MacroEditorState,
dispatch: AppDispatch,
Expand Down

0 comments on commit 5134d15

Please sign in to comment.