Dwayne Harris 4 years ago
parent
commit
4b8ae0db0b
  1. 2
      src/apps/gif-app/composer/app.tsx
  2. 4
      src/server/api.ts

2
src/apps/gif-app/composer/app.tsx

@ -60,7 +60,7 @@ const App: FC<Props> = ({ communicator }) => {
if (content.settings) setSettings(content.settings)
if (content.theme) setTheme(content.theme)
if (content.parent && content.parent.data && content.parent.data.search) {
if (content.parent?.data?.search) {
setSearch(content.parent.data.search)
}
}

4
src/server/api/index.ts → src/server/api.ts

@ -10,7 +10,7 @@ import {
} from 'fastify'
import { Server, IncomingMessage, ServerResponse } from 'http'
import request from 'request'
import { PluginOptions, GiphyResponse } from '../../types'
import { PluginOptions, GiphyResponse } from '../types'
interface FetchOptions {
url: string
@ -65,7 +65,7 @@ async function fetch<T = any>(options: FetchOptions) {
uri,
method,
json: true,
}, function(error, response, body) {
}, function(error, _, body) {
if (error) {
reject(error)
return
Loading…
Cancel
Save