LiteSun commented on a change in pull request #1490:
URL: https://github.com/apache/apisix-dashboard/pull/1490#discussion_r580727300



##########
File path: web/src/components/Plugin/PluginDetail.tsx
##########
@@ -92,6 +93,11 @@ const PluginDetail: React.FC<Props> = ({
   const ref = useRef<any>(null);
   const data = initialData[name] || {};
   const pluginType = pluginList.find((item) => item.name === name)?.type;
+  const [codeMirrorMode, setCodeMirrorMode] = 
useState<PluginComponent.CodeMirrorMode>('javascript');
+  const modeOptions = [
+    { label: 'Json', value: 'javascript' },

Review comment:
       why use `javascript ` here? 🤔 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to