Skip to content
Snippets Groups Projects
Commit 2a8c2bf3 authored by Maxime Jacquemin's avatar Maxime Jacquemin
Browse files

[ivette] Satisfying the linter

parent ce3864bf
No related branches found
No related tags found
No related merge requests found
...@@ -532,7 +532,7 @@ export function ModalActionField() { ...@@ -532,7 +532,7 @@ export function ModalActionField() {
// Auxiliary function that build a Hint from an ActionMode. // Auxiliary function that build a Hint from an ActionMode.
const modeToHint = (mode: ActionMode) => { const modeToHint = (mode: ActionMode) => {
const { label, title, icon } = mode; const { label, title = '', icon } = mode;
const id = 'ActionMode-' + title + '-' + icon; const id = 'ActionMode-' + title + '-' + icon;
const value = () => { onModeChange(mode); }; const value = () => { onModeChange(mode); };
return { id, icon, label, title, value, rank: -1000 }; return { id, icon, label, title, value, rank: -1000 };
...@@ -562,7 +562,7 @@ export function ModalActionField() { ...@@ -562,7 +562,7 @@ export function ModalActionField() {
const hs = await modesMode.hints(input); const hs = await modesMode.hints(input);
const notCurrent = (h: Hint) => !(h.label.includes(current.label)); const notCurrent = (h: Hint) => !(h.label.includes(current.label));
return hs.filter(notCurrent); return hs.filter(notCurrent);
}, [current.title, modesMode]); }, [current.label, modesMode]);
// Register the new search engine. // Register the new search engine.
React.useEffect(() => { React.useEffect(() => {
......
...@@ -44,7 +44,9 @@ let get_term kf term = ...@@ -44,7 +44,9 @@ let get_term kf term =
try Some (!Db.Properties.Interp.term ~env kf term) try Some (!Db.Properties.Interp.term ~env kf term)
with Logic_interp.Error _ | Parsing.Parse_error -> None with Logic_interp.Error _ | Parsing.Parse_error -> None
let key_of_localizable = let open Printer_tag in function let key_of_localizable =
let open Printer_tag in
function
| PStmt _ | PStmtStart _ | PTermLval _ | PVDecl _ | PGlobal _ | PIP _ -> None | PStmt _ | PStmtStart _ | PTermLval _ | PVDecl _ | PGlobal _ | PIP _ -> None
| PLval (_, Kglobal, _) | PExp (_, Kglobal, _) -> None | PLval (_, Kglobal, _) | PExp (_, Kglobal, _) -> None
| PLval (kf, Kstmt stmt, lval) -> | PLval (kf, Kstmt stmt, lval) ->
......
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