fix: digital Input Modal show values
This commit is contained in:
@@ -6,5 +6,5 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=false
|
NEXT_PUBLIC_EXPORT_STATIC=false
|
||||||
NEXT_PUBLIC_USE_CGI=false
|
NEXT_PUBLIC_USE_CGI=false
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.426
|
NEXT_PUBLIC_APP_VERSION=1.6.427
|
||||||
NEXT_PUBLIC_CPL_MODE=jsmock # json (Entwicklungsumgebung) oder jsmock (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
NEXT_PUBLIC_CPL_MODE=jsmock # json (Entwicklungsumgebung) oder jsmock (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
||||||
@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=true
|
NEXT_PUBLIC_EXPORT_STATIC=true
|
||||||
NEXT_PUBLIC_USE_CGI=true
|
NEXT_PUBLIC_USE_CGI=true
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.426
|
NEXT_PUBLIC_APP_VERSION=1.6.427
|
||||||
NEXT_PUBLIC_CPL_MODE=production
|
NEXT_PUBLIC_CPL_MODE=production
|
||||||
@@ -239,7 +239,7 @@ var win_de_offline = [
|
|||||||
0
|
0
|
||||||
];
|
];
|
||||||
var win_de_label = [
|
var win_de_label = [
|
||||||
"DE112",
|
"DE1",
|
||||||
"DE2",
|
"DE2",
|
||||||
"DE3",
|
"DE3",
|
||||||
"DE4",
|
"DE4",
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ export default function InputModal({ selectedInput, closeInputModal, isOpen }) {
|
|||||||
(input) => input.id === Number(selectedInput?.id)
|
(input) => input.id === Number(selectedInput?.id)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
console.log("📦 selectedInput.id:", selectedInput?.id);
|
||||||
|
console.log("📦 reduxInput:", reduxInput);
|
||||||
|
|
||||||
const [isInitialLoad, setIsInitialLoad] = useState(true);
|
const [isInitialLoad, setIsInitialLoad] = useState(true);
|
||||||
const [name, setName] = useState("");
|
const [name, setName] = useState("");
|
||||||
@@ -27,7 +29,7 @@ export default function InputModal({ selectedInput, closeInputModal, isOpen }) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (reduxInput && isInitialLoad) {
|
if (reduxInput && isInitialLoad) {
|
||||||
setName(reduxInput.name || "");
|
setName(reduxInput.label || "");
|
||||||
setInvertiert(reduxInput.invertierung);
|
setInvertiert(reduxInput.invertierung);
|
||||||
setFilterzeit(reduxInput.filterzeit);
|
setFilterzeit(reduxInput.filterzeit);
|
||||||
setGewichtung(reduxInput.gewichtung);
|
setGewichtung(reduxInput.gewichtung);
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.426",
|
"version": "1.6.427",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.426",
|
"version": "1.6.427",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/roboto": "^5.1.0",
|
"@fontsource/roboto": "^5.1.0",
|
||||||
"@iconify-icons/ri": "^1.2.10",
|
"@iconify-icons/ri": "^1.2.10",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.426",
|
"version": "1.6.427",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
win_de_offline: extractArray("win_de_offline").map(Number),
|
win_de_offline: extractArray("win_de_offline").map(Number),
|
||||||
win_de_label: extractArray("win_de_label"),
|
win_de_label: extractArray("win_de_label"),
|
||||||
};
|
};
|
||||||
|
console.log("📡 JSMOCK-Daten geladen:", data);
|
||||||
|
|
||||||
return res.status(200).json(data);
|
return res.status(200).json(data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user