Browse Source

clarify clearGraph as being unsafe i.e. calling throught to javascript

Mark deVilliers 2 years ago
parent
commit
63b85bc7aa
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ui/src/Search.elm

+ 2 - 2
ui/src/Search.elm

@@ -23,7 +23,7 @@ main =
23 23
 port unsafeDrawGraph : List FloatDataItem -> Cmd msg
24 24
 
25 25
 
26
-port clearGraph : String -> Cmd msg
26
+port unsafeClearGraph : String -> Cmd msg
27 27
 
28 28
 
29 29
 
@@ -73,7 +73,7 @@ update msg model =
73 73
             ( { model | filter = Nothing }, getAllMetadata )
74 74
 
75 75
         RefreshMetadataCompleted (Ok items) ->
76
-            ( { model | all = Just items }, clearGraph "only-for-the-compiler" )
76
+            ( { model | all = Just items }, unsafeClearGraph "only-for-the-compiler" )
77 77
 
78 78
         RefreshMetadataCompleted (Err httpError) ->
79 79
             Debug.crash (toString httpError)