Utilize ?. operator and set TypeScript target
This commit is contained in:
1 parent
ca83704958
commit
c3c7ab72b2
19 files changed
+55
-77
No files matched your search
+1
-1
@@ -207,7 +207,7 @@ export const component: ClosureComponent = (): Component => {
|
||||
actionHandler: async (action, obj) => {
|
||||
if (action !== "save")
|
||||
throw new Error("Undefined action");
|
||||
const file = obj["file"] ? obj["file"][0] : null;
|
||||
const file = obj["file"]?.[0];
|
||||
|
||||
// nginx strips out headers with dot, so replace with dash
|
||||
const headers = {
|
||||
|
||||
Reference in new issue
Block a user