fix: digital Input Modal show values

This commit is contained in:
ISA
2025-06-20 07:20:53 +02:00
parent 7ff1c4aaaf
commit 3cadee04a8
7 changed files with 10 additions and 7 deletions

View File

@@ -6,5 +6,5 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false
# 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)

View File

@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
NEXT_PUBLIC_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.426
NEXT_PUBLIC_APP_VERSION=1.6.427
NEXT_PUBLIC_CPL_MODE=production

View File

@@ -239,7 +239,7 @@ var win_de_offline = [
0
];
var win_de_label = [
"DE112",
"DE1",
"DE2",
"DE3",
"DE4",

View File

@@ -16,6 +16,8 @@ export default function InputModal({ selectedInput, closeInputModal, isOpen }) {
(input) => input.id === Number(selectedInput?.id)
)
);
console.log("📦 selectedInput.id:", selectedInput?.id);
console.log("📦 reduxInput:", reduxInput);
const [isInitialLoad, setIsInitialLoad] = useState(true);
const [name, setName] = useState("");
@@ -27,7 +29,7 @@ export default function InputModal({ selectedInput, closeInputModal, isOpen }) {
useEffect(() => {
if (reduxInput && isInitialLoad) {
setName(reduxInput.name || "");
setName(reduxInput.label || "");
setInvertiert(reduxInput.invertierung);
setFilterzeit(reduxInput.filterzeit);
setGewichtung(reduxInput.gewichtung);

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "cpl-v4",
"version": "1.6.426",
"version": "1.6.427",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "cpl-v4",
"version": "1.6.426",
"version": "1.6.427",
"dependencies": {
"@fontsource/roboto": "^5.1.0",
"@iconify-icons/ri": "^1.2.10",

View File

@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
"version": "1.6.426",
"version": "1.6.427",
"private": true,
"scripts": {
"dev": "next dev",

View File

@@ -49,6 +49,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
win_de_offline: extractArray("win_de_offline").map(Number),
win_de_label: extractArray("win_de_label"),
};
console.log("📡 JSMOCK-Daten geladen:", data);
return res.status(200).json(data);
}