Fixed retries in sdk, file ordering in admin and editing issues in app creator

This commit is contained in:
frikky
2022-02-24 02:06:38 +01:00
parent a6d224aff0
commit e3a8f1553e
6 changed files with 65 additions and 33 deletions
+1 -1
View File
@@ -3185,7 +3185,7 @@ const Admin = (props) => {
}
return (
<ListItem key={index} style={{ backgroundColor: bgColor }}>
<ListItem key={index} style={{ backgroundColor: bgColor, maxHeight: 100, overflow: "hidden",}}>
<ListItemText
style={{
maxWidth: 225,
+9 -12
View File
@@ -275,7 +275,6 @@ const AppCreator = (defaultprops) => {
const [urlPathQueries, setUrlPathQueries] = useState([]);
const [update, setUpdate] = useState("");
const [urlPathParameters] = useState([]);
const [firstrequest, setFirstrequest] = React.useState(true);
const [basedata, setBasedata] = React.useState({});
const [actions, setActions] = useState([]);
const [filteredActions, setFilteredActions] = useState([]);
@@ -343,16 +342,13 @@ const AppCreator = (defaultprops) => {
window.location.host === "shuffler.io";
useEffect(() => {
if (firstrequest) {
setFirstrequest(false);
if (window.location.pathname.includes("apps/edit")) {
setIsEditing(true);
handleEditApp();
} else {
checkQuery();
}
}
});
if (window.location.pathname.includes("apps/edit")) {
setIsEditing(true);
handleEditApp();
} else {
checkQuery();
}
}, []);
const handleEditApp = () => {
fetch(globalUrl + "/api/v1/apps/" + props.match.params.appid + "/config", {
@@ -1635,6 +1631,7 @@ const AppCreator = (defaultprops) => {
if (urlParams !== undefined && urlParams !== null && urlParams.has("id")) {
data.id = urlParams.get("id")
}
//id: props.match.params.appid,
}
@@ -5267,7 +5264,7 @@ const AppCreator = (defaultprops) => {
);
const loadedCheck =
isLoaded && isAppLoaded && !firstrequest ? (
isLoaded && isAppLoaded ? (
<div>
<div style={bodyDivStyle}>{landingpageDataBrowser}</div>
{newActionModal}