Skip to content
Snippets Groups Projects
Commit 3133ddcd authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by James Long
Browse files

fix(useSheetValue): default value should be null not undefined

Fixes #393
parent 4904da50
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ export default function useSheetValue(binding, onChange) {
let spreadsheet = useContext(SpreadsheetContext);
let [result, setResult] = useState({
name: sheetName + '!' + binding.name,
value: binding.value,
value: binding.value === undefined ? null : binding.value,
query: binding.query
});
let latestOnChange = useRef(onChange);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment