Skip to content

Commit

Permalink
Fix flow
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Feb 6, 2025
1 parent 663ec9c commit cd17ce9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions newIDE/app/src/VariablesList/VariableTypeSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import * as React from 'react';
import { t } from '@lingui/macro';

import { type MessageDescriptor } from '../Utils/i18n/MessageDescriptor.flow';
import SelectField from '../UI/SelectField';
import SelectOption from '../UI/SelectOption';
import VariableStringIcon from './Icons/VariableStringIcon';
Expand All @@ -23,6 +24,7 @@ type Props = {|
isHighlighted?: boolean,
readOnlyWithIcon?: boolean,
id?: string,
errorMessage: MessageDescriptor | null,
|};

let options;
Expand Down
1 change: 1 addition & 0 deletions newIDE/app/src/VariablesList/VariablesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,7 @@ const VariablesList = React.forwardRef<Props, VariablesListInterface>(

const typeErrorMessage =
parentType === gd.Variable.Array &&
parentVariable &&
parentVariable.getChildrenCount() > 1 &&
parentVariable.getAtIndex(0).getType() !== type
? i18n._(t`Array children must all be of the same type.`)
Expand Down

0 comments on commit cd17ce9

Please sign in to comment.