fix: image build problems due to import
This commit is contained in:
@@ -54,7 +54,7 @@ import YAML from "yaml";
|
|||||||
import { MuiChipsInput } from "mui-chips-input";
|
import { MuiChipsInput } from "mui-chips-input";
|
||||||
//import { useAlert
|
//import { useAlert
|
||||||
import { ToastContainer, toast } from "react-toastify"
|
import { ToastContainer, toast } from "react-toastify"
|
||||||
import words from "shellwords";
|
import { split } from "shellwords";
|
||||||
|
|
||||||
import AvatarEditor from "react-avatar-editor";
|
import AvatarEditor from "react-avatar-editor";
|
||||||
import { Context } from "../context/ContextApi.jsx";
|
import { Context } from "../context/ContextApi.jsx";
|
||||||
@@ -119,7 +119,7 @@ const parseCurl = (s) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var args = rewrite(words.split(s));
|
var args = rewrite(split(s));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user