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_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)
|
||||
@@ -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
|
||||
@@ -239,7 +239,7 @@ var win_de_offline = [
|
||||
0
|
||||
];
|
||||
var win_de_label = [
|
||||
"DE112",
|
||||
"DE1",
|
||||
"DE2",
|
||||
"DE3",
|
||||
"DE4",
|
||||
|
||||
@@ -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
4
package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cpl-v4",
|
||||
"version": "1.6.426",
|
||||
"version": "1.6.427",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"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_label: extractArray("win_de_label"),
|
||||
};
|
||||
console.log("📡 JSMOCK-Daten geladen:", data);
|
||||
|
||||
return res.status(200).json(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user